Click here to Skip to main content
12,554,442 members (88,075 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET SQL
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 | Mobile
Web02 | 2.8.161021.1 | Last Updated 30 Apr 2012
Copyright © CodeProject, 1999-2016
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