阅读背景:

如何将MVC AREA中的某一个页设为起始页

来源:互联网 

Area中AdminAreaRegistration如下:

 1     public class AdminAreaRegistration : AreaRegistration
 2     {
 3         public override string AreaName
 4         {
 5             get
 6             {
 7                 return "Admin";
 8             }
 9         }
10 
11         public override void RegisterArea(AreaRegistrationContext context)
12         {
13             context.MapRoute(
14                 "Admin_default",
15                 "Admin/{controller}/{action}/{id}",
16                 new { controller="Manage", action = "Index", id = UrlParameter.Optional }
17             );
18         }
19     } 1     publ



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: