标签:
protected void btnExcelDownload_Click(object sender, EventArgs e) { Response.ContentType = "application/x-zip-compressed"; Response.AddHeader("Content-Disposition", "attachment;filename=InstallRecord.zip"); string filename = Server.MapPath("../ExcelFiles/InstallRecordTemplate.zip"); Response.TransmitFile(filename); }
标签:
原文地址:http://www.cnblogs.com/xinzheng/p/5564484.html