下载异步上传插件AjaxFileUploader,下载地址:http://phpletter.com/DOWNLOAD/

解压,保存在 asp.net mvc项目的一个文件夹下,如下图:
1.         Controller层
 public ActionResult View3()
        {
            return View();
 
        }
        [HttpPost]
        public ActionResult View3(HttpPostedFileBase file)
        {
            if (file == null)
            {
                return Content("没有文件!", "text/plain");
            }
            var fileName = Path.Combine(Request.MapPath("~/UploadFiles"), Path.GetFileName(file.FileName));
            try
            {
                file.SaveAs(fileName);             
                return Content("上传成功!", "text/plain");
            }
            catch
            {
                return Content("上传异常 !", "text/plain");
            }
        }
 
2.         View层:
@{
    Layout = null;
}
 
 
   
    View1