using System; using System.Collections.Generic; using System.Linq; using System.Web; using Microsoft.AspNet.Membership.OpenAuth; using System.Web.Routing; using Microsoft.AspNet.FriendlyUrls; namespace CouponsForGiving { public static class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.Ignore("{resource}.axd/{*pathInfo}"); routes.MapPageRoute("LearnMore", "LearnMore", "~/LearnMore.aspx"); routes.MapPageRoute("DefaultPage", "{nponame}", "~/Default/NPOPage.aspx"); routes.MapPageRoute("CampaignPage", "{nponame}/{campaignname}", "~/Default/CampaignPage.aspx"); //This one routes a lot of other pages routes.EnableFriendlyUrls(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)