Forum Moderators: phranque

Message Too Old, No Replies

redirect to a file ASP

         

mcsilvio2

4:20 pm on Nov 9, 2007 (gmt 0)

10+ Year Member



Hi all,
ive got a file on my web server that i want to have the user be able to download. it resides outside of the wwwroot. i need to write this into a codebehind on one of my pages (ASP VB).

i tried response.redirect("c:\folder\file.txt") but this didnt work. gave me a 404 i think.

is this possible? any ideas?

cheers,
marco.

ebound

4:40 pm on Nov 9, 2007 (gmt 0)

10+ Year Member



try reading the contents of the file into a variable and then do whatever you want with it.

goog search: asp read text file

mcsilvio2

5:16 pm on Nov 9, 2007 (gmt 0)

10+ Year Member



sorry to be misleading. but the files are typically in zip not just txt. any ideas?