1.Area区域中记得加命名空间区分相同的控制器
public override void RegisterArea(AreaRegistrationContext context) { context.MapRoute( this.AreaName + "_Default", this.AreaName + "/{controller}/{action}/{id}", new { area = this.AreaName, action = "Index", id = UrlParameter.Optional }, new string[] { "SDTIWEB.Areas." + this.AreaName + ".Controllers" } //命名空间 ); }
1069

被折叠的 条评论
为什么被折叠?



