日期:2014-05-17  浏览次数:20443 次

图片输出到网页,指定位置
请问,我画了一张图,然后用流的方式输出到页面,要如何指定位置,比如放进页面的一个表格中

C# code

System.IO.MemoryStream ms = new System.IO.MemoryStream();
            bmp.Save(ms, System.Drawing.Imaging.ImageFormat.Png);
            this.Response.ContentType = "image/png";
            ms.WriteTo(this.Response.OutputStream);
            ms.Close();



------解决方案--------------------
你需要这样
<td><img src="show.aspx">

或者

<td><img src="show.ashx">

show.aspx,ashx里面写你的上面那些代码