Letting a user option to download files

  • Thread starter Thread starter RA
  • Start date Start date
R

RA

Hi

After I get the user entering the information, I would like to start
downloading a file when he clicks the submit(server side) button. I don't
want to give access to the downloaded file directly but only to be able from
the server side to download the file to the client (Basically I don't want
the user going to www.myhomepage.com/download and get the file without
entering his information). I would like to start downloading and also to
redirect him to a thank you page.


Thanks
 
You could use Response.WriteFilme to stream a file (possibly stored outside
to the client). Of course you can check whatever you want on this page to
prevent "wild" downloads...

Patrice
 
Back
Top