关键在这里,用下面的代码解决问题
<script runat=server language=C#>
void Page_Load() {
Response.ContentType="application/x-zip-compressed";
Response.AddHeader("Content-Disposition", "attachment;filename=z.zip");
Response.TransmitFile("c:\\repro\\z.zip");
}
</script>
void Page_Load() {
Response.ContentType="application/x-zip-compressed";
Response.AddHeader("Content-Disposition", "attachment;filename=z.zip");
Response.TransmitFile("c:\\repro\\z.zip");
}
</script>