Click here to Skip to main content
15,897,519 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.

when user clicks on link button ,he is able to download a pdf file into local system.
how to do this using asp.net using C#.

Thanks in Advance
Posted

1 solution

The easiest way is to make a hyperlink to the pdf file. Then when the user clicks it the browser will automatically download it.

The other way is to write the bytes to the Response object. One example of that is here, File Download in ASP.NET and Tracking the Status of Success/Failure of Download[^]
 
Share this answer
 
Comments
Member 10714689 19-Nov-15 3:15am    
thanks Ryan
ZurdoDev 19-Nov-15 7:04am    
You're welcome.

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