如何将 MemoryStream 绑定到 asp:image 控件? [英] How to bind a MemoryStream to asp:image control?

查看:52
本文介绍了如何将 MemoryStream 绑定到 asp:image 控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法将 MemoryStream 绑定到 asp:image 控件?

Is there a way to bind a MemoryStream to asp:image control?

推荐答案

处理程序可以像任何其他请求一样接受 url 参数.因此,不是将您的 <asp:image/> 链接到 image.ashx,而是将其设置为 image.ashx?ImageID=[Your image ID这里].

A handler can accept a url parameter like any other request. So instead of linking your <asp:image/> to image.ashx you'd set it to image.ashx?ImageID=[Your image ID here].

这篇关于如何将 MemoryStream 绑定到 asp:image 控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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