当我首先加载页面时,先执行动作结果,然后查看并布局,然后再次执行动作结果。
public ActionResult UploadPricedata()
{
oLoggedinUser = Session["LoginUser"] as List<Users>;
if (oLoggedinUser == null) return RedirectToAction("LogIn", "TransBankUsers");
return View();
}