62,047
社区成员
发帖
与我相关
我的任务
分享
string name = "123.xls";
Response.AddHeader("Content-Disposition", "attachment; filename=" + Server.UrlEncode(name));
Response.ContentType = "application/ms-excel";
Response.WriteFile(name);
Response.End();
System.IO.File.Delete(Server.MapPath(name));
string name = "123.xls";
System.IO.File.Delete(Server.MapPath(name));
Response.AddHeader("Content-Disposition", "attachment; filename=" + Server.UrlEncode(name));
Response.ContentType = "application/ms-excel";
Response.WriteFile(name);
Response.End();