ASP.NET 下载功能怎么不让它自动关闭当前页面?我上网搜了一下页面下载功能,但是总是在出现下载时,页面自动关闭了
代码如下:System.Web.HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment;filename=" + fileInfo.Name);
System.Web.HttpContext.Current.Response.AddHeader("Content-Length", fileInfo.Length.ToString());
System.Web.HttpContext.Current.Response.AddHeader("Content-Transfer-Encoding", "binary");
System.Web.HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.GetEncoding("gb2312");
需要如何解决呢?请高手指教!