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 asp.net 2010 with a save as dialog box option
Posted
Comments
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

C#
Response.AppendHeader("Content-Disposition", "attachment; filename=" + filename);
Response.TransmitFile(location + filename);
Response.End();
 
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