如何在sql的网格视图中显示pdf文件(图标或链接) [英] how to display pdf file(icon or link) in grid view from sql
本文介绍了如何在sql的网格视图中显示pdf文件(图标或链接)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你能帮帮我吗?。
我需要在网格视图中显示pdf文件(文件链接或图标链接),我准备上传到文件夹中,我保存路径,文件名在DB
提前感谢。
could you help me ?.
I need to display pdf file(link of file or icon link) in grid view , i ready uploaded in folder , i saved path , file name in DB
thanks in advance.
推荐答案
<a href="<%# Eval("DownloadLink")" target="_blank">Download PDF</a>
将其放入GridView专栏的项目模板中。
Put this in one of your GridView Column's Item Template.
这篇关于如何在sql的网格视图中显示pdf文件(图标或链接)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文