用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版也不行了
2026年09月22日 08:48
有4个网友回答
网友(1):

这应该是360浏览器3.7版没有安装相应插件的原因,你找一下相关插件安装上再试试。
看到你的代码突然想到或许是浏览器拦截了文件下载操作,可以找一下360浏览器的相关设置。

网友(2):

我也出现这个问题,怎么解决谢谢了

网友(3):

我也遇到这个问题 等待高人来回答

网友(4):

我以认为是这样的,这应该是360浏览器3.7版没有安装相应插件的原因,你找一下相关插件安装上再试试。
看到你的代码突然想到或许是浏览器拦截了文件下载操作,可以找一下360浏览器的相关设置。