防止相同名字的controller冲突,可以在配置路由的时候添加命名空间:
routes.MapRoute( "Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" }, new [] { "AreasDemoWeb.Controllers" } );
posted on 2013-03-08 14:56 fishyk 阅读(119) 评论(0) 编辑 收藏 举报