一.nop中的路由注冊(cè)

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

photoshop培訓(xùn),電腦培訓(xùn),電腦維修培訓(xùn),移動(dòng)軟件開(kāi)發(fā)培訓(xùn),網(wǎng)站設(shè)計(jì)培訓(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  &