Click here to Skip to main content
15,886,045 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,


How to download a word file on click event of button from a path in asp.net.



Thanks & Regards
Mohd. Wasif
Posted

You can force the file save dialog to appear. See here[^].
 
Share this answer
 
I assume you don't want something simple like providing a link to the file that will be downloaded? This would be the simplest way. You could use CSS to give just about any look you would like.

Otherwise, http://msdn.microsoft.com/en-us/library/system.web.httpresponse.binarywrite%28v=vs.80%29.aspx[^]
 
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