System.Web.SiteMap.CurrentNode Property

Gets a System.Web.SiteMapNode control that represents the currently requested page.

Syntax

public static SiteMapNode CurrentNode { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The System.Web.SiteMap class retrieves the SiteMap.CurrentNode property by requesting it from the provider.

If no representative node exists for the page in the site map information, or if security trimming is enabled and the node cannot be returned for the current user, null is returned.

The SiteMap.SiteMapResolve event is raised by the default site map provider if one or more subscriptions exist.

If you implement your own System.Web.SiteMapProvider object, you might create your own mechanism to find and retrieve the SiteMapProvider.CurrentNode. However, if you extend the System.Web.StaticSiteMapProvider class and use a URL-based scheme to identify pages, you can override the StaticSiteMapProvider.FindSiteMapNode(string) method.

Requirements

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