开发者

Display Images MHTML

I have a byte array of MHTML. When I do a Response.开发者_如何学编程BinaryWrite in the Page_Load event, it displays fine. When I do the same in a button click event, the images do not display. I looked at the HTTP Headers in each case and only see that the button click event has the following additional headers:

Referer: http://localhost:41757/Default2.aspx Content-Type: application/x-www-form-urlencoded Content-Length: 615 Cache-Control: no-cache

Could any of these cause the issue? I tried doing a Response.Clear and Response.ClearHeaders, but the images still didn't display.

Thanks.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜