用Asp.net 做导出excel和word,但是在360浏览器3.7版上无法使用,在3.6版上则正常
在3.7版上,点击导出excel,会弹出框来,但立马消失,然后就没反应了,这怎么解决?在IE上也是好用的,public static void CreateExcel(DataSet ds, string filename, string strType, Page page) { page.Response.Clear(); page.Response.Buffer = true; page.Response.Charset = "GB2312"; page.Response.AppendHeader("Content-Disposition", "attachment;filename=" + filename); page.Response.ContentType = strType; page.EnableViewState = false;System.IO.StringWriter swOut = new System.IO.StringWriter(); HtmlTextWriter hTw = new HtmlTextWriter(swOut); System.Web.UI.WebControls.DataGrid dg = new System.Web.UI.WebControls.DataGrid(); dg.DataSource = ds; dg.DataBind(); dg.RenderControl(hTw); page.Response.Write(swOut.ToString()); page.Response.End(); }这是我的导出excel方法,在IE上是好用的,在原来的360浏览器3.6版上也是好用的,但用3.7版就不行了,现在我重新安装3.6版也不行了