62,017
社区成员
发帖
与我相关
我的任务
分享
private void btnContinue_Click(object sender, System.EventArgs e)
{
//Download File
FileInfo file = null;
string filename = null;
filename = Server.MapPath("temp\\Customer.xls");
file = new FileInfo(filename);
Response.Clear();
Response.AddHeader("Content-Disposition","attachment; filename=" + "GIRO.doc");
Response.AddHeader("Content-Length", file.Length.ToString());
Response.ContentType = "application/xls";
Response.WriteFile(filename);
Response.End();
}