Click here to Skip to main content
13,193,970 members (48,043 online)
Rate this:
Please Sign up or sign in to vote.
See more:
How to download files using a gridview in How to give option in grid view and download particular file/ image.
Posted 29-Apr-12 23:20pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Please refer following links:

How to export GridView to Excel, render cells, add WordArt, and fill a custom template[^][^]
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[^]
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171018.2 | Last Updated 30 Apr 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100