asp.net 下载文件

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);
        }