MVC打开电脑对话框
//下载文件 public ActionResult Download(int id) { //依靠模板生成文档 var path =要下载的文件的路径 var name = Path.GetFileName(path); return File(path, "application/zip-x-compressed", name); }
//上传文件 http://blog.csdn.net/oscar999/article/details/8696693
//下载文件 public ActionResult Download(int id) { //依靠模板生成文档 var path =要下载的文件的路径 var name = Path.GetFileName(path); return File(path, "application/zip-x-compressed", name); }
//上传文件 http://blog.csdn.net/oscar999/article/details/8696693