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

星期天最累了。。。

Controller

1 return RedirectToAction("action", "controller", new { area = "area-name" });

Page

1 <%= 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 );


呃,完咧


posted @ 2012-02-19 19:09  Yoer  阅读(898)  评论(0编辑  收藏  举报