在asp.net的gridview中下载按钮 [英] Download Button in gridview in asp.net

查看:106
本文介绍了在asp.net的gridview中下载按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!我不是陌生人,需要紧急帮助.我有一个项目要完成,而且剩余时间很少,所以请帮我解决代码.

我有一个gridview,其中包含Employee_No,Name和另一个包含按钮的列. Ive在另一个文件中保留了pdf格式的Employees确认信,其文件名与他们的Employee_No相同.如何编写代码,以便在GridView中单击下载按钮时,编译器应检查带有Employee_no的文件是否存在,如果存在,则显示该文件并允许下载.

请帮帮我.我急需代码

Hi! Im very new to dont net and need some urgent help. I have a project to complete and have very little time left so please help me out with the code.

I have a gridview which contains Employee_No, Name and another column containing buttons. In another fiile Ive maintained the Employees confirmation letters in pdf format, whose filename is the same as their Employee_No. How to write code so that on clicking of the download button in the gridview the compiler should check whether the file with that Employee_no exists or not and if it existss then display that file and allow download.

Please help me out. Im in urgent need of the code

推荐答案

Refer the below link it may useful  for u




将DataGrid导出到Excel,Word和文本文件 [ ^ ]




Exporting DataGrid to Excel, Word and Text Files[^]


这篇关于在asp.net的gridview中下载按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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