摘要:
本文介绍了一种在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-08-29 00:42
Rhythmk
阅读(5100)
评论(0)
推荐(0)
浙公网安备 33010602011771号