如何在gridview中显示图像 [英] How to display Images in gridview

查看:72
本文介绍了如何在gridview中显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当图像路径存储在数据库中时,我尝试在Gridview中显示图像。

我成功将图像保存在网站中的图像等文件夹中。当图像路径在其他文件夹中时,我失败了。

I try to display images in Gridview, when Image path stored in database.
I Succeeded when images maintained in one folder like "Images" with in the web site. I failed when the image path is in some other folder which is not included.

推荐答案

尝试以下链接 -

CodeProject常见问题系列1:ASP.NET GridView [ ^ ]

在GridView中显示数据库中的图像 [ ^ ]

在C#,VB.NET中从数据库在Asp.net Gridview中显示图像 [ ^ ]
Try the following links -
CodeProject Frequently Asked Questions Series 1: The ASP.NET GridView[^]
Displaying Images from a Database in a GridView[^]
Display Images in Asp.net Gridview from Database in C#, VB.NET [^]


参考



http://www.aspdotnet-suresh.com/2011/01/how-to-insert-images-into-database-and.html [<一个href =http://www.aspdotnet-suresh.com/2011/01/how-to-insert-images-into-database-and.htmltarget =_ blanktitle =New Window> ^ ]



http://www.c-sharpcorner.com/UploadFile/5089e0/show-image-in-gridview-using-Asp-Net/ [ ^ ]


这篇关于如何在gridview中显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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