本文介绍了如何从asp.net中的数据库动态添加图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个面板,必须包含从数据库动态加载的图像,因此其数量未知.我用google搜索,但没有找到解决方案.所以任何人都可以告诉我如何将图像添加到此面板中吗?请帮助我,这是我网站的最后一部分.

谢谢您的帮助.

HI ALL ,

I have a panel that must contain images that are loaded dynamically from database so their number is unknown.I googled that but did not find a solution.So please can anyone tell me how can i add the images to this panel ? Please help me this is the last part of my website.

Thanks for any help.

推荐答案


Do the following steps:

1) Create one blank aspx page
2) Assign panel as Panel1.BackImageUrl= url of that new page
3) Write code In that page that reads image bytes from database and write to that page using page.Response.BinaryWrite(bytes())

The panel will display the image rendered on that page.


这篇关于如何从asp.net中的数据库动态添加图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 12:23
查看更多