我在同一个控制器中创建了两个视图.问题是,我想在完成httppost后加载第二个视图. 索引视图 public ActionResult Index(){ return View();} HttpPost [HttpPost]public ActionResult Index(AccountModel model){ return V
          索引视图
public ActionResult Index()
{
  return View();
} 
 HttpPost
[HttpPost]
public ActionResult Index(AccountModel model)
{
  return View("NEXTVIEW");
} 
 下一个视图
public ActionResult NEXTVIEW(EpmloyeeModal model)
{
  return View();
} 
 在HttpPost之后,我添加了返回nextview.而它总是返回索引视图.我试图在不同的网站上找到这样的场景,但在任何地方都找不到.
谢谢.
试试这样吧[HttpPost]
public ActionResult Index(AccountModel model)
{
  return RedirectToAction("NEXTVIEW");
}
        
             