This one I think is real easy....but I just can't figure it out. I've spent more time than I care to admit on this one.
I'm trying to have my asp write an FTP link to the users browser so they can quickly download via FTP a file from my web server.
The HTML commands that works fine is as follows:
<br>
Please click on file name to
download file to your computer:
<A target="" href="ftp://xyz/ftp.ftp.txt" >ftp.ftp.txt</A>
<br>
When the above commands are executed in my browser a ftp link is shown to the user...and they can successful download the file ftp.ftp.txt from my nt 40 server.
However, when I try to do the same thing for a different file I get a "cannot find server or DNS Error" from my IE browswer.
The code that gives me the above error is shown below:
<br>
Please click on file name to
download file to your computer:
<A target="" href="ftp://IDS1/ftp.testftp.txt" >testftp.txt</A>
<br></body></HTML>
The file exists in the ftproot folder...right next to the other folder. Any ideas? this must be obvious...but I don't get it?
Also, here is another question which is more ASP related:
The first set of html code above that works give the user a hyperlink that is as follows:
ftp://xyz/ftp.ftp.txt
However when I try and write the above code via an ASP to the users screen, the hyperlink, which is in error, is as follows:
How can I get my ASP, using the Response.write command, to write the ftp link correctly? Here is the ASP code that causes the problem:
Response.Write("Please click on the filename to download file to your computer ==> "
sFTPLocation="<A target="" href="ftp://IDS1/ftp.ftp.txt" >test.txt</A>"
Response.Write(sFTPLocation)
Thanks for the help !!
/jerry
I'm trying to have my asp write an FTP link to the users browser so they can quickly download via FTP a file from my web server.
The HTML commands that works fine is as follows:
<br>
Please click on file name to
download file to your computer:
<A target="" href="ftp://xyz/ftp.ftp.txt" >ftp.ftp.txt</A>
<br>
When the above commands are executed in my browser a ftp link is shown to the user...and they can successful download the file ftp.ftp.txt from my nt 40 server.
However, when I try to do the same thing for a different file I get a "cannot find server or DNS Error" from my IE browswer.
The code that gives me the above error is shown below:
<br>
Please click on file name to
download file to your computer:
<A target="" href="ftp://IDS1/ftp.testftp.txt" >testftp.txt</A>
<br></body></HTML>
The file exists in the ftproot folder...right next to the other folder. Any ideas? this must be obvious...but I don't get it?
Also, here is another question which is more ASP related:
The first set of html code above that works give the user a hyperlink that is as follows:
ftp://xyz/ftp.ftp.txt
However when I try and write the above code via an ASP to the users screen, the hyperlink, which is in error, is as follows:
How can I get my ASP, using the Response.write command, to write the ftp link correctly? Here is the ASP code that causes the problem:
Response.Write("Please click on the filename to download file to your computer ==> "
sFTPLocation="<A target="" href="ftp://IDS1/ftp.ftp.txt" >test.txt</A>"
Response.Write(sFTPLocation)
Thanks for the help !!
/jerry