RedirectToAction with parameter

后端 未结 14 1559
傲寒
傲寒 2020-11-22 08:56

I have an action I call from an anchor thusly, Site/Controller/Action/ID where ID is an int.

Later on I need to redirect to th

14条回答
  •  渐次进展
    2020-11-22 09:31

    If your need to redirect to an action outside the controller this will work.

    return RedirectToAction("ACTION", "CONTROLLER", new { id = 99 });
    

提交回复
热议问题