2012年4月26日

Asp.net mvc3 文件下载的实现

摘要: 1.控制器的ActionResult public ActionResult DownLoadFile() { string filePath = Server.MapPath("~/ResourceFile/1ef53469-cbac-4007-b40b-ae68644794e7.doc"); return new DownloadResult(filePath, "1ef53469-cbac-4007-b40b-ae68644794e7.doc"); }2.DownLoadResult类的实现public class DownloadResult : 阅读全文

posted @ 2012-04-26 19:05 khh 阅读(666) 评论(1) 推荐(0) 编辑

导航