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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top