标签:
//下载文件 public ActionResult Download(int id) { //依靠模板生成文档 var path =要下载的文件的路径 var name = Path.GetFileName(path); return File(path, "application/zip-x-compressed", name); }
MVC打开电脑对话框
原文地址:http://www.cnblogs.com/xiaoyaodijun/p/4642932.html