一.nop中的路由注册

在Global.asax,Application_Start()方法中会进行路由注册,代码如下。

photoshop培训,电脑培训,电脑维修培训,移动软件开发培训,网站设计培训,网站建设培训

  1        public static void RegisterRoutes(RouteCollection routes)  2         {  3             routes.IgnoreRoute("favicon.ico");  4             routes.IgnoreRoute("{resource}.axd/{*pathInfo}");  5   6             //register custom routes (plugins, etc)  7             var routePublisher = EngineContext.Current.Resolve<IRoutePublisher>();  8             routePublisher.RegisterRoutes(routes);  9  10             routes.MapRoute( 11                 "Default", // Route name 12                 "{controller}/{action}/{id}", // URL with parameters 13  &