protected void Button1_Click(object sender, EventArgs e)
{
Response.ContentType = "application/x-zip-compressed";
Response.AddHeader("Content-Disposition", "attachment;filename=a.gif");
string filename = Server.MapPath("images/an.gif");
Response.TransmitFile(filename);
}
文件下载
最新推荐文章于 2019-08-28 11:17:19 发布