System.Web.SiteMapProvider.CurrentNode Property

Gets the System.Web.SiteMapNode object that represents the currently requested page.


public virtual SiteMapNode CurrentNode { get; }


Documentation for this section has not yet been entered.


The SiteMapProvider.SiteMapResolve event is raised before attempting to retrieve a System.Web.SiteMapNode object, to enable event subscribers to return an instance of the System.Web.SiteMapNode class. If there are no event subscribers, the System.Web.SiteMapProvider class calls the SiteMapProvider.FindSiteMapNode(HttpContext) method using the current HTTP context to retrieve a System.Web.SiteMapNode that represents the currently requested page.

If the currently requested page does not correspond with a System.Web.SiteMapNode, null is returned. If security trimming is enabled and the user is not permitted to access the System.Web.SiteMapNode, null is returned.


Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0