asp.net 下载大文件

http://support.microsoft.com/kb/823409/EN-US/
关键在这里,用下面的代码解决问题
<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>
原文地址:https://www.cnblogs.com/supercode/p/161197.html