Get the SiteMapNode for a URL

Aug 8, 2011 at 12:49 PM

Hey, maybe i'm just being stupid but i can't think how to return the SiteMapNode for a URL. I was wondering if there was a helper method to do this? e.g. MvcSiteMapProvider.Helpers.GetSiteMapNode(string url). Appreciate the help. Thanks

Coordinator
Aug 26, 2011 at 12:49 PM
((MvcSiteMapProvider.DefaultSiteMapProvider)System.Web.SiteMap.Provider).FindSiteMapNode() should do the trick