Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Download an ASP file?

Status
Not open for further replies.

HIM

Programmer
May 8, 2000
50
GB
Hi everybody

I have created a website for my rowing club, and would like to be able to download files from the site. It is no problem to display all the directories and the files. I have allready created the browser, but I have realized that my knowledge of ASP and HTML is not enough when it comes to downloading an ASP page.....

Does anyone know how to do this?

Thanks
 
Hmmm... I have seen posts here and there about some way to encode the file so that a browser won't recognize it -- that would be the only way to do it directly --

Another idea (if all you want to do is let someone download your source code) would be to zip the file up and stick it out there with a link so that someone could download it...

There, there's always the response.write option... Just response.write(sourceCode) to the browser in a literal string fully enclosed in ""'s so that it will just write out whatever is in between the quotes.

Aside of those three options (and I don't know how to do the first), there is no way that I know of to allow someone to download the file, because the browser will recognize the extenstion and, therefore, attempt to render the page to the browser.

Paul Prewett
 
if you have the ASP on a server that support ASP, the problem is , however you download it on port 80(Web Browsers), the server is always going to encode the data inside of <% %> and such, this is one of the secure features of ASPs. Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top