如何在视图中显示图像? [英] how to show image in gried view?

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

问题描述

任何人都告诉我如何使用数据库在视图中显示图像吗?

解决方案

请参阅此链接.
在GridView中显示数据库中的图像 [ http://csharpdotnetfreak.blogspot.com/2009/07/display-images- gridview-from-database.html [ ^ ]
http://msdn.microsoft.com/en-us/library/aa479350.aspx [ ^ ]
http://weblogs. asp.net/aghausman/archive/2009/05/26/show-images-on-grid-view-from-file-stream.aspx [ 解决方案

Refer to this link.
Displaying Images from a Database in a GridView[^]


use sqldatasource for that.and use templatefield in gridview and inside template field add image tag.


Some more links that could help you -
http://csharpdotnetfreak.blogspot.com/2009/07/display-images-gridview-from-database.html[^]
http://msdn.microsoft.com/en-us/library/aa479350.aspx[^]
http://weblogs.asp.net/aghausman/archive/2009/05/26/show-images-on-grid-view-from-file-stream.aspx[^]


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

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