如何将图像从数据库(sqlserver)绑定到图像控件 [英] How to bind image from database (sqlserver) to image control

查看:93
本文介绍了如何将图像从数据库(sqlserver)绑定到图像控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

插入后如何直接插入数据库所以插入后如果图像是sys日期我想要检索图像到图像ctrl我已经检索到id,名称到文本框但是要检索图像我不能

how to insert imagedirectly to database after inserting so after inserting if image is with sys date i want to retrieve image to image ctrl already i have retrieved id,name to textboxes but to retrieve image i cant

推荐答案

如果我正确理解了这个问题,你需要从数据库中获取图像并将其放入Image控件中吗?若然,请看看



http://www.aspsnippets.com/Articles/Display-Images-from-SQL-Server-Database-using-ASP.Net.aspx [ ^ ]







http://www.aspsnippets.com/Articles/Display-image-from-database -in-Image-control-without-using-Generic-Handler-in-ASPNet.aspx [ ^ ]





有很多例子可以使用这个查询<啊REF = https://www.google.com/webhp?q=image+asp.net+from+database+site:codeproject.com> https://www.google.com/webhp?q=image+ asp.net +来自+ database + site:codeproject.com [ ^ ]
If I understood the question correctly, you need to fetch the image from the database and put it into an Image control? If so, have a look at

http://www.aspsnippets.com/Articles/Display-Images-from-SQL-Server-Database-using-ASP.Net.aspx[^]

or

http://www.aspsnippets.com/Articles/Display-image-from-database-in-Image-control-without-using-Generic-Handler-in-ASPNet.aspx[^]


There are a lot more examples available for example using this query https://www.google.com/webhp?q=image+asp.net+from+database+site:codeproject.com[^]


这篇关于如何将图像从数据库(sqlserver)绑定到图像控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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