如何绑定一个MemoryStream到ASP:图像控制? [英] How to bind a MemoryStream to asp:image control?

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

问题描述

有没有绑定一个MemoryStream到ASP的方式:?图像控制

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

推荐答案

一个处理器可以接受像任何其他请求的URL参数。因此,而不是你的链接< ASP:图像/> image.ashx 你将它设置为 image.ashx?ImageID = [这里您的图像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:图像控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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