public static void RegisterRoute(System.Web.Routing.RouteCollection routes) { //routes.MapPageRoute("ForTitle", "~/{Name}", "~/default.aspx"); //routes.MapPageRoute("ForTitle", "~/{Name}", "~/"); routes.MapPageRoute("baslik", "/{title}", "~/default.aspx", false); routes.MapPageRoute("yazar", "yazar/{name}", "~/user/yazar.aspx", false); routes.MapPageRoute("entry", "entry/{number}", "~/entry/entry.aspx", false); routes.MapPageRoute("oda", "oda/{dep}", "~/department/oda.aspx", false); }
public static void Register(R.RouteCollection routes) { routes.MapHttpRoute( name: "ControllerActionObj0", routeTemplate: "api/Project/{controller}/{action}/{obj}", defaults: new { obj = RouteParameter.Optional } ); routes.MapHttpRoute( name: "ControllerObj1", routeTemplate: "api/Project/{controller}/{obj}", defaults: new { obj = RouteParameter.Optional } ); routes.MapHttpRoute( name: "ControllerActionObj", routeTemplate: "api/{controller}/{action}/{obj}", defaults: new { obj = RouteParameter.Optional } ); routes.MapHttpRoute( name: "ControllerObj", routeTemplate: "api/{controller}/{obj}", defaults: new { obj = RouteParameter.Optional } ); routes.Ignore("Images/{pathInfo}.svg"); routes.Ignore("Images/{pathInfo}.png"); routes.Ignore("Images/{pathInfo}.jpg"); routes.Ignore("Views/{pathInfo}"); routes.Ignore("Views/{pathInfo}/{Param1}"); routes.Ignore("Views/{pathInfo}/{Param1}/{Param2}"); routes.Ignore("Views/{pathInfo}/{Param1}/{Param2}/{Param3}"); routes.MapPageRoute("Main", "", "~/Default.aspx"); routes.MapPageRoute("Page", "{Page}", "~/Default.aspx"); routes.MapPageRoute("SubPages", "{Page}/{SubPage}", "~/Default.aspx"); routes.MapPageRoute("TertPages", "{Page}/{SubPage}/{TertPage}", "~/Default.aspx"); routes.MapPageRoute("QuatPages", "{Page}/{SubPage}/{TertPage}/{QuatPages}", "~/Default.aspx"); routes.MapPageRoute("QuinPages", "{Page}/{SubPage}/{TertPage}/{QuatPages}/{QuinPages}", "~/Default.aspx"); routes.MapPageRoute("SexPages", "{Page}/{SubPage}/{TertPage}/{QuatPages}/{QuinPages}/{SexPages}", "~/Default.aspx"); }
static void RegisterRoutes(System.Web.Routing.RouteCollection routes) { routes.MapPageRoute("index", "index", "~/index.aspx"); routes.MapPageRoute("mainindex", "main/index", "~/main/index.aspx"); routes.MapPageRoute("allUsers", "main/allUsers", "~/main/allUsers.aspx"); routes.MapPageRoute("InfoLinks", "main/InfoLinks", "~/main/InfoLinks.aspx"); routes.MapPageRoute("categoriesPage", "main/categoriesPage", "~/main/categoriesPage.aspx"); routes.MapPageRoute("myOffers", "main/myOffers", "~/main/myOffers.aspx"); routes.MapPageRoute("myRequests", "main/myRequests", "~/main/myRequests.aspx"); routes.MapPageRoute("offerHelp", "main/offerHelp", "~/main/offerHelp.aspx"); routes.MapPageRoute("requestHelp", "main/requestHelp", "~/main/requestHelp.aspx"); routes.MapPageRoute("subCategoriesPage", "main/subCategoriesPage", "~/main/subCategoriesPage.aspx"); routes.MapPageRoute("userProfile", "main/userProfile", "~/main/userProfile.aspx"); routes.MapPageRoute("manageLanguage", "main/manageLanguage", "~/main/manageLanguage.aspx"); routes.MapPageRoute("reportsMonitor", "main/reportsMonitor", "~/main/reportsMonitor.aspx"); routes.MapPageRoute("smsConfiguration", "main/smsConfiguration", "~/main/smsConfiguration.aspx"); routes.MapPageRoute("ConfigUnits", "main/ConfigUnits", "~/main/ConfigUnits.aspx"); routes.MapPageRoute("adminDash", "main/adminDash", "~/main/adminDash.aspx"); routes.MapPageRoute("adminDetailed", "main/adminDetailed", "~/main/adminDetailed.aspx"); }
public static void RegisterRoutes(System.Web.Routing.RouteCollection routes) { routes.MapPageRoute("", "product/{id}/{*ids}", "~/product.aspx"); }