从sqlserver检索图像并在visual webpart中显示 [英] Retrieving image from sqlserver and display in visual webpart

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

问题描述





我正在尝试开发一个可视化的webpart,它将根据用户的输入显示图像。我在sqlserver中插入了图像和相应的细节。我可以在visual webpart中检索并显示其他详细信息。我不知道如何从sqlserver检索图像并将其显示在visual webpart中。请帮忙!



谢谢!

Hi,

I am trying to develop a visual webpart which will display images according to the user''s input. I inserted the image and the respective details in sqlserver. I can retrieve and display the other details in visual webpart. I dont know how to retrieve the image from sqlserver and display it in visual webpart . Please help!

Thanks!

推荐答案

你不能把图像直接放在webpart中,你必须使用指向将为图像提供服务的处理程序的图像标记。

CodeProject上有数百种解决方案可以做一些研究。
You can''t put image directly in webpart, you have to use image tag pointing to a handler which will serve the image.
There are hundreds of solutions for this here on CodeProject do some research.


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

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