62,243
社区成员




<div id="ShowImage" runat="server" visible="false" style="position:absolute;"><asp:Image ID="Image1" runat="server" /></div>
cs:
Image1.ImageUrl = "picLoad.aspx"; //假设picLoad.aspx是生成图片二进制流的文件
ShowImage.Visible = true;
这个是基服务器控件的,还可以是html控件img,同样用层,去掉runat="server",用style.display="none"隐藏层
this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "", "<script>popup(message);</script>", true);
后台调用前台JS,然后在popup的JS代码中设置$('#dialog-message').html("<img src="+message+">");
大概这种意思,你试试可以不的