ASP.NET MVC routing and areas

后端 未结 2 1539
遥遥无期
遥遥无期 2020-12-30 06:38

I am messing around with ASP.NET MVC 2 Preview 2 and am trying to figure out how routing works with areas and such. In a single project implementation of areas, I want an a

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 06:51

    http://haacked.com/archive/2009/07/31/single-project-areas.aspx

    routes.MapAreaRoute("Forums", 
            "admin_area", 
            "admin/{controller}/{action}/{id}", 
            new { controller = "apples", action = "search", id = "" }, 
            new string[] { "Project.Areas.Admin.Controllers" });
    

提交回复
热议问题