void RegisterRoutes(RouteCollection routes) { foreach (CMSPages item in CP.GetSiteRoutes()) { if (item.ToString()=="home") { routes.MapPageRoute(item.RouteName, "", "~/Home.aspx"); } else { routes.MapPageRoute(item.RouteName, item.RouteURL, "~/Home.aspx"); } } }
foreach (CMSPages cpg in cp.GetSiteRoutes()) { string[] pName = cpg.RouteURL.Split('/'); HyperLink hyp = new HyperLink(); hyp.Text = cpg.RouteName; hyp.NavigateUrl = cpg.RouteName+"/"+pName[0]; pnlNav.Controls.Add(hyp); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)