public ActionResult Index(HttpPostedFileBase file, string mode) { this.postedFile = file; Thread newThread = new Thread(Calculate, 1048576); newThread.Start(); newThread.Join(); return View(); }