Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to download files using a gridview in asp.net. How to give option in grid view and download particular file/ image.
Posted

Hi,

add link button in gridview and set download path to commandargument of linkbutton using Eval and finally write download code on link button Click

Best Luck
 
Share this answer
 
Please refer following links:

How to export GridView to Excel, render cells, add WordArt, and fill a custom template[^]
http://mattberseth.com/blog/2007/04/export_gridview_to_excel_1.html[^]
CodeProject Frequently Asked Questions Series 1: The ASP.NET GridView[^]
Downloading files like pdfs should be easy if they are attached to the GridView.
The browser should allow you to do that.

This will give you some more help, have a look:
Downloading files using grid view in asp.net[^]
 
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