Asp.net MVC 路由到Areas的三种方式

星期天最累了。。。
Controller
 return RedirectToAction("action", "controller", new { area = "area-name" });


Page
 <%= Html.ActionLink("display-value", "action", "controller", new { area = "area-name" }, null) %>


Routing
1             routes.MapRoute(
2                 "Default",
3                 "{controller}/{action}",
4                 new { area = "area-name", controller = "", action = "" }
5             );


呃,完咧

摘自  Yoer

你可能感兴趣的:(mvc,null,asp.net,action)