Hi is there alternative to FindSiteMapNode
as atm I am trying to get Current node of a raw site but its returning null, even the security isn’t enabled.
SiteMapNode currentNode = contentMapProvider.FindSiteMapNode(“www.asdasdasda.com/asdsad.aspx”);
however it works for
SiteMapNode currentNode = contentMapProvider.FindSiteMapNode(HttpContext.Current);
So looking for a alternative.
Cheers
The reason it doesn’t work by string is because you must create your own portal site map provider and override this function.
from msdn – “When overridden in a derived class, retrieves a SiteMapNode object that represents the page at the specified URL.”
This means you must override the class and implement your own retrieval code. Here is a code example. http://msdn.microsoft.com/en-us/library/72b370ha.aspx Either way it implements using the current context.