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

 

posted @ 2015-07-13 15:01  逍遥帝君  阅读(292)  评论(0编辑  收藏  举报