C#代码在数据库的图像控件中显示图像 [英] c# code to display image in image control from database

查看:89
本文介绍了C#代码在数据库的图像控件中显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在数据库中创建了一个表,其列ID为varchar和pic image.
现在在我的asp Web表单中,我已经获取了一个文本框,一个按钮和一个图像控件,现在当我输入一个id并单击该按钮时,我希望c#代码在图像控件中显示相应的图像
它紧急的帮助我

i have created a table in database with columns id varchar and pic image.
now in my asp web form i have taken a textbox, a button and an image control, now when i enter an id and click the button i want the c# code to display respective image in the image control
its urgent plz help me

推荐答案

这篇文章 [ ^ ]显示您可以实现自己想要的目标.

但是我不明白为什么您要先将图像存储在数据库中.
this post[^] shows you have you can achieve what you want.

However I don''t understand why you would want to store an image in a database to begin with.


这篇关于C#代码在数据库的图像控件中显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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