on this configuration my default controller Home and action About is getting called, now in the action method I am calling RedirectToRoute() with the following value like thispublic ActionResult Index(){ return View();}public ActionResult About(){ return RedirectToRoute("pattern2");}为什么RedirectToRoute()不调用Admin/Index操作Why is the RedirectToRoute() not calling Admin/Index action 推荐答案尝试一下:return RedirectToRoute(new { controller = "Admin", action = "Index", id = null });您还可以使用RedirectToAction()方法.似乎更直观. You could also use RedirectToAction() method. It seems more intuitive. 这篇关于如何在MVC中使用RedirectToRoute("routeName")?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-19 12:02