godygiedrarie
New Member
<%@ Import Namespace="System.Web.Routing" %> void Application_Start(object sender, EventArgs e) { RegisterRoutes(RouteTable.Routes); } public static void RegisterRoutes(RouteCollection routes) { RouteTable.Routes.Add(new System.Web.Routing.Route("{resource}.axd/{*pathInfo}", new System.Web.Routing.StopRoutingHandler()));\[code\] RouteTable.Routes.MapPageRoute("StoreRoute", "{Name}", "~/Default.aspx"); RouteTable.Routes.MapPageRoute("Listing", "Listing/{keyword}/{city}/{area}", "~/Listing.aspx");}\[/code\]at the above code i have written two route first is "StoreRout" that is working finethe second one "Listing" route that is not workingnow my url is http://www.sitename.com/Listing.aspx?keyword=Media&City=Pune&area=campi am trying to url should be like http://www.sitename.com/Media/Pune/campplease help me.