在网格视图中下载数据 [英] Download data in Grid view

查看:70
本文介绍了在网格视图中下载数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用asp.net中的gridview下载文件.如何在网格视图中提供选项并下载特定文件/图像.

How to download files using a gridview in asp.net. How to give option in grid view and download particular file/ image.

推荐答案

请参考以下链接:

如何将GridView导出到Excel,渲染单元格,添加艺术字并填充自定义模板 [ ^ ]
http://mattberseth.com/blog/2007/04/export_gridview_to_excel_1.html [ ^ ]
CodeProject常见问题系列1:ASP.NET GridView [使用asp.net中的网格视图下载文件 [
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[^]




在gridview中添加链接按钮,并使用Eval将下载按钮设置为linkbutton的命令参数,最后在链接按钮上编写下载代码单击

祝你好运
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


这篇关于在网格视图中下载数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆