Click here to Skip to main content
15,921,452 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to download in 2010 with a save as dialog box option
ZurdoDev 23-Feb-12 11:57am    
You need to modify the Response object or you can also just redirect to the file. Either way, there are a lot of samples you should look for first.

1 solution

Response.AppendHeader("Content-Disposition", "attachment; filename=" + filename);
Response.TransmitFile(location + filename);
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900