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); }
时间: 2024-10-12 15:34:33