ASP.NET [Image Handler]

早过忘川 提交于 2019-11-27 08:35:20

问题


I'm still trying to load my image from database. But that's not so easy with my skins to understand the shots : Using Handler I read this stuff and was on trying to make it but I found only one method : Mapping some my page (in webconf) to this handler (ashx)

I need to use it in my page in my

and Thank you.


回答1:


it's pretty straight forward and has been answered before.

Dynamically Rendering asp:Image from BLOB entry in ASP.NET

where most novices get confused is that the image data is never assigned to any property of the asp.net image control. instead the src of the image is assigned to the url of the image handler. The image handler then writes the data to the response via Response.Write().



来源:https://stackoverflow.com/questions/2099545/asp-net-image-handler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!