Passing Information Between Controllers in ASP.Net-MVC

后端 未结 4 921
北恋
北恋 2020-12-09 22:56

This is a duplicate of How to RedirectToAction in ASP.NET MVC without losing request data


Hi, I have come into a problem which is making me scratch my head a l

4条回答
  •  一生所求
    2020-12-09 23:27

    Change the call to:

    return RedirectToAction("LoginFailed", new { sendFlag = sendStoredInfo });
    

    The controller action method signature could be something like:

    public ActionResult LoginFailed(bool sendFlag)
    {
        ...
    }
    

提交回复
热议问题