文件下载?
Response.Clear();
Response.ClearHeaders();
Response.Buffer = true;
this.EnableViewState = false;
Response.ContentType = "application/octet-stream";
Response.AppendHeader("Content-Disposition", "attachment;filename=" + strFileName);
// strFileName文件名称
Response.WriteFile(strFilePath,true);//strFilePath文件路径
Response.Flush();
Response.Close();
Response.End();
Response.Clear();
Response.ClearHeaders();
Response.Buffer = true;
this.EnableViewState = false;
Response.ContentType = "application/octet-stream";
Response.AppendHeader("Content-Disposition", "attachment;filename=" + strFileName);
// strFileName文件名称
Response.WriteFile(strFilePath,true);//strFilePath文件路径
Response.Flush();
Response.Close();
Response.End();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货