摘要:
本文介绍了一种在ASP.NET中下载文件的方法。方法一:可能是最简单的、最短的方式:1 Response.ContentType = "application/pdf";2 Response.AppendHeader("Content-Disposition", "attachment; filename=MyFile.pdf");3 Response.TransmitFile(Server.MapPath("~/Files/MyFile.pdf"));4 Response.End(); 第一步是设置文档内容的类型 阅读全文
posted @ 2013-06-05 16:58
陌上归人
阅读(1770)
评论(0)
推荐(1)

浙公网安备 33010602011771号