一.nop中的路由注冊

在Global.asax,Application_Start()方法中會進(jìn)行路由注冊,代碼如下。

photoshop培訓(xùn),電腦培訓(xùn),電腦維修培訓(xùn),移動軟件開發(fā)培訓(xùn),網(wǎng)站設(shè)計培訓(xùn),網(wǎng)站建設(shè)培訓(xùn)

  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  &