ASP.NET MVC 设置区域默认定向

public override void RegisterArea(AreaRegistrationContext context)
{
context.MapRoute(
"m_default",
"m/{controller}/{action}/{id}",
//设置区域下的默认的跳转
new { Controller="Home",action = "Index", id = UrlParameter.Optional }
);
}

 

 

 

 

以上代码经过本人测试真实可用!

相关文章:

  • 2021-09-13
  • 2022-02-21
  • 2021-08-06
  • 2022-12-23
  • 2021-07-22
  • 2021-11-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
相关资源
相似解决方案