void Application_Start(object sender, EventArgs e) { // Code that runs on application startup RegisterRoutes(RouteTable.Routes); }
public static void RegisterRoutes(RouteCollection routeCollection) { routeCollection.MapPageRoute("RouteForMainCategory", "{Category}", "~/User/index.aspx"); routeCollection.MapPageRoute("RouteForSubCategory", "{Category}/{SubCategory}", "~/User/index.aspx"); routeCollection.MapPageRoute("RouteForMainPage", "{ }", "~/User/index.aspx"); }
routeCollection.MapPageRoute("RouteForIndex", "Default", "~/Default.aspx");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)