下边内容是关于ASP.NET中将网页HTML保存到Excel下载的内容。
Response.Clear();
Response.Buffer= true;
Response.AppendHeader("Content-Disposition","attachment;filename="+DateTime.Now.ToString("yyyyMMdd")+".xls");
Response.ContentEncoding=System.Text.Encoding.UTF8;
Response.ContentType = "application/vnd.ms-excel";
this.EnableViewState = false;
原文:https://www.cnblogs.com/boysbye/p/10281684.html