void RegisterUrl(RouteCollection route) { route.MapPageRoute("Home", "Home", "~/Default.aspx"); route.MapPageRoute("About", "AboutUs/{d}", "~/About.aspx"); route.MapPageRoute("Product1", "{Dept}", "~/Product.aspx"); route.MapPageRoute("Product2", "ProductView/{C}", "~/Product.aspx"); route.MapPageRoute("Product3", "{Dept}/{Cat}", "~/Product.aspx"); route.MapPageRoute("Product4", "{Dept}/{Cat}/{SC}", "~/Product.aspx"); } void Application_Start(object sender, EventArgs e) { RegisterUrl(RouteTable.Routes); // Code that runs on application startup }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)