Jump to content
Xtreme .Net Talk

sdlangers

Avatar/Signature
  • Posts

    118
  • Joined

  • Last visited

2 Followers

sdlangers's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. does anyone know where to get a good, secure .NET forum component/application.. to add to a website - platform is windows server 2003 with sql server its impossible to search for because i keep getting actual forumns in the results :) any recommendations are appreciated thanks
  2. yes - that should work - check out this link http://msdn.microsoft.com/library/default.asp?url=/library/en-us/architec/8_ar_da_0777.asp also you can simply check these things with trial and error - run the code and then try to insert 2 identical records - or check the table in enterprise manager
  3. if this is sql server, then you can use this syntax: CREATE TABLE employee ( emp_id empid ... other columns... CONSTRAINT PK_emp_id PRIMARY KEY NONCLUSTERED ) that will create the employee table, with a primary key called 'PK_emp_id'
  4. hi, i have an image in a report that displays correctly in the report designer, however when i view the report in the web browser, the image wont display - it just shows the 'red-x' image (the same one browsers use for a bad image link) any ideas? thanks!
  5. i have a site that displays dynamic images whose src is taken from a database. however, some of the image links are broken. is there a way to specify an 'alternate image' if the link is broken.. e.g. if an image called 'someImage.jpg' is missing or renamed, then i need a way to display a default image 'default.jpg' instead of displaying the standard red x that indicates a broken link <img src="/path/someImage.jpg"> i also cannot check on the server side if the file exists or not, because sometimes it exists but its not a valid image - and its a large database, so i dont want to have to manually review them all. thanks!
  6. nevermind- i found it looks like the crystal report designer has some type of caching with the xsd 'connection' - so whenever i clicked verify database, it said it was up to date. so i deleted the xsd, rebuilt, then closed down visual studio (which i think must have cleared the designer cache) and reopened it and then recreated the xsd, and clicked verify database in the report designer and it recognized the new field
  7. hi, i created a report in crystal reports using a dataset and populating it through xml (instead of connecting directly to the database) it works correctly, but i then wanted to add another field to the dataset. i added it to the xsd file, but when i go to the crystal report and refresh the 'database fields' list it still does not show up i tried re-running the custom tool on the xsd but that doesnt work surely there is a way of getting it to recognize the new field without having to remove and re-add the 'database' - if i do this, i lose all the fields that i have already laid out, formatted etc. thanks for your help!
  8. hi, im trying to create a type of landing page where i can set a cookie and redirect to another page.. here is the code for the page load: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' set cookie Response.Cookies("salesid").Value = Request("salesid") ' redirect Response.Redirect(Request("redirect")) End Sub looks simple enough, but it doesnt work - the redirect seems to cause problems with writing the cookie. is this some sort of security restriction? if so, any ideas for a workaround? thanks for the help
  9. Can anyone recommend some free blogging software that is fast, secure, reliable etc and that runs on the .net 2.0 framework i tried installing DasBlog - and it seemed like it had good reviews and all, but when i installed it, any changes to the configuration took about 5 mins to take affect and completely brought the web server to a crawl while doing so. any recommendations? or even any recommendations for some relatively cheap commercial versions?
  10. perfect - thanks.
  11. hi, i have a 10 digit random number generated i want to check that there are the same digit is not in the number 3 times in a row e.g. 1224526890 is ok, but 1222426890 is not ok because 2 is there 3 times in a row i guess some type of regular expression can do this, but i dont know how to use these or which one to use thanks for your help
  12. to see the sample code itself look at: http://sourceforge.net/docman/display_doc.php?docid=22902&group_id=92889
  13. oh.. nevermind - i got that FTPClient C# dll working i just needed to use the IP address instead of the http://FTP://username@server.com syntax so i did a ping to the server, from my dedicated server to get the ip, then switched the code to use that and it worked thanks for the help ps - if anyone else is looking for something similar - i definitely recommend the FTPClient DLL - great program: http://sourceforge.net/projects/dotnetftpclient/
  14. Hi, thanks for the reply.. i wish it was that simple :) the ftp drive cannot be mapped as a network drive, so i cant just use a drive letter. i also tried that link you sent - the FTPClient in C# is a great program, but i cant get it to work for me.. problem is they use this line of code to connect: aCN.Open("192.168.4.67", "anonymous", "", FTPMode.Active); but i have to use the following syntax via a web-browser to connect: "ftp://username@backupserver.com" then it prompts me for the password, which i type in, and then i can connect this is the ONLY way i can connect - i cannot even connect from regular FTP software. it HAS to be from within the browser on my dedicated server.. i cant even connect this way from any other computer. anybody got any ideas on how to code this?
  15. hi, my dedicated server has a backup server which i can copy files to using these steps: i have to open up IE and type in this url: ftp://myuser@mybackupserver.com/ it then prompts me for the password which i enter, then i can simply drag the files into that window and it copies them over however, i would like to write a .net program to copy some files over automatically and then schedule it to run nightly can someone point me in the right direction for trying to code the above procedure. how do you specify the ftp site as the destination, how do you specify the user/pass etc. thanks!
×
×
  • Create New...