1、直接Redirect后加 Controller/Action

Response.Redirect("/User/Edit");   

2、直接return后加 Controller/Action

     return Redirect("/User/Edit");           

3、RedirectToAction方法,直接跳到一个action

 return RedirectToAction("edit");

4、跳转的页并不在该Controller中

 return RedirectToAction("about","Home");

相关文章:

  • 2021-12-12
  • 2022-12-23
  • 2021-07-06
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
猜你喜欢
  • 2022-02-07
  • 2022-02-17
  • 2021-06-27
  • 2021-07-16
  • 2021-10-16
  • 2022-12-23
相关资源
相似解决方案