如何从数据库获取图像到除(gridview,datalist)之外的其他选项(imagebutton,image) [英] how to get the image from database to other option (imagebutton,image) except (gridview,datalist)

查看:66
本文介绍了如何从数据库获取图像到除(gridview,datalist)之外的其他选项(imagebutton,image)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我将图像存储在文件夹中,并将图像的路径保存在datbase.now中.现在,我想从数据库中检索图像,并在图像或imagebutton中显示它,但(gridview,datalist)除外.请帮助我.
我尝试以常规方式进行绑定....就像我们对gridview所做的一样,但是我找不到任何选项来像imagebutton或image(gridview.datasorce = ds这样绑定图像,我无法为imagebutton设置数据源)


i stored image in folder and saved the path of the image in datbase.now i want to retrieve the image from database and show it in image or imagebutton except (gridview,datalist).plz help me.
i tried it in normal way of binding.... like we do for gridview but i cant find any option to bind the image like that in imagebutton or image(gridview.datasorce=ds like this i cant set the datasource for imagebutton)

推荐答案

选项r(gridview,datalist)以外的任何其他选项
直接控制图片?表格中的图片?面板背景?

现在我想从数据库中检索图像
看看这些:
MSDN:ADO.NET [ MSDN:使用ADO.NET访问数据 [ ^ ]
MSDN:在GridView列中显示图像 [
option r any other option except (gridview,datalist)
Image control directly? Image in a Table? Panel background?

now i want to retrieve the image from database
Look at these:
MSDN: ADO.NET[^]
MSDN: Accessing Data with ADO.NET[^]
MSDN: Displaying Images in a GridView Column[^] (Instead of binding the fetched data to grid, assign it to other control of your choice. )


这篇关于如何从数据库获取图像到除(gridview,datalist)之外的其他选项(imagebutton,image)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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