FireFox显示弹出打开或保存对话框。Firefox Iframe问题
<iframe id="appFrame" runat="server" style="height: 95%; width: 100%; border: 0px;
z-index: -123;"></iframe>
我使用iframe来显示Word文档,
document.getElementById("ctl00_GridContentPlaceHolder_appFrame").src = "ResponseWriter.aspx?docid=" + docId + "&doctype=" + docType + "&type=" + type;
我打电话ResponseWriter.aspx写字节它运作良好,在IE浏览器,但不能在Firefox,这里是ResponseWriter.aspx的代码
Response.ClearHeaders();
Response.ClearContent();
Response.AddHeader("MIME Type", type.Trim());
Response.AppendHeader("content-disposition",
"inline;attachment; filename=" + "Unknown." + docType);
Response.AddHeader("Content-Length", _fileArray.Length.ToString());
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
Response.ContentType = type.Trim();
Response.BinaryWrite(_fileArray.ToArray());
Response.End();
任何人都可以帮助我。
你有什么问题?你没有说。你能发布实际返回文件的代码吗? – Oded 2011-05-23 12:29:25