如何从gridview linkbutton click上的数据库中的图像路径中检索图像 [英] How do I retrive image from image path from database on gridview linkbutton click

查看:54
本文介绍了如何从gridview linkbutton click上的数据库中的图像路径中检索图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我有一个gridview。它有一个链接按钮。单击链接按钮将显示弹出窗口。并且在那里,为数据库中的该条目存储的图像。我将路径存储在数据库和图像文件夹中。那么如何显示图像呢?任何类似的文章?

Hello, I have a gridview. It has a link button. On clicking the link button a pop up window will show. And in that, the image which is stored for that entry in the database. I'm storing the path in database and image in folder. So how to show the image? Any similar articles?

推荐答案

我有类似的经历,发现这个13分钟的视频展示了如何使用

超链接控件。超链接部分大约10分钟开始。



视频现在有点旧了,但我认为它还是很好的信息:-)



http:// www。 asp.net/web-forms/videos/how-do-i/how-do-i-create-data-driven-web-sites



虽然他没有专门加载图像我认为你应该知道如何配置数据网格查询和详细信息视图。



我用文件上传控件存储图像的文件路径,超链接打开文件。在我的情况下是一个PDF,但我想它应该适用于图像?



希望它有所帮助
I had a similar experience and found this 13 minute video showed how to use the
hyperlink control. The hyperlink part starts around 10 minutes.

The vid is a bit old now but I think it is still good information :-)

http://www.asp.net/web-forms/videos/how-do-i/how-do-i-create-data-driven-web-sites

Although he doesn't specifically load an image I think you should get the idea of how to configure you datagrid queries and details view.

I used a file upload control to store the file path of the image and the hyperlink opens the file. In my case a PDF but I guess it should work for an image ??

Hope it helps


这篇关于如何从gridview linkbutton click上的数据库中的图像路径中检索图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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