RedirectToAction with parameter

后端 未结 14 1900
傲寒
傲寒 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:27

    RedirectToAction with parameter:

    return RedirectToAction("Action","controller", new {@id=id});
    

提交回复
热议问题