在IE上显示mht文件的Response.ContentType = "message/rfc822"问题
wbj02 2007-08-31 09:19:22 我从数据库中取出mht的二进制文件,用如下方法在页面框架中加载的aspx上显示出来:Response.Buffer = true;
Response.Clear();
Response.ContentType = "message/rfc822"; //输出类型
Response.AddHeader("content-disposition", "inline; filename=test.mht");
Response.Charset = "gb2312";
Response.BinaryWrite(btView);//输出数据。
Response.End();
页面显示正常,但是发现aspx的父页面却不正常了。<input按扭都不能点击了。<div什么的也不能正常显示在最上层。我把Response.ContentType 改成"text/html"就一切正常了。但是这样mht就显示乱码了。
请问有没有高手知道怎么回事,有没有办法解决?