asp.net中文件下载功能的实例代码
2017-02-06
23
复制代码 代码如下://TransmitFile实现下载protected void Button1_Click(object sender, EventArgs e){Response.ContentType = "application/x-zip-compressed";Response.AddHeader("Content-Disposition", "attachment;filename=z.zip");string filename = Se...