SiteMap.SiteMapResolve Event

Occurs when the CurrentNode property is accessed.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public:
static event SiteMapResolveEventHandler^ SiteMapResolve {
	void add (SiteMapResolveEventHandler^ value);
	void remove (SiteMapResolveEventHandler^ value);
}
/** @event */
public static void add_SiteMapResolve (SiteMapResolveEventHandler value)

/** @event */
public static void remove_SiteMapResolve (SiteMapResolveEventHandler value)

In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.

Subscribers attach a SiteMapResolveEventHandler object to the static SiteMapResolve event to receive notification when the CurrentNode property is accessed. This enables the user to implement custom logic when creating a SiteMapNode representation of the currently executing page without requiring a custom provider implementation.

If you subscribe to the SiteMapResolve event, you also subscribe to the SiteMapResolve event on the default site map provider.

TopicLocation
How to: Programmatically Modify Site-Map Nodes in MemoryBuilding ASP .NET Web Applications
How to: Programmatically Modify Site-Map Nodes in MemoryBuilding ASP .NET Web Applications

The following code example demonstrates how to handle the SiteMapResolve event on an ASP.NET Web page to modify the target URLs that are displayed by a site navigation control, such as the SiteMapPath control. In this example, the current page is a post page in an online bulletin board or forum. In order to render more meaningful site navigation, the URLs of the nodes that are displayed by the navigation control are appended with context relevant query strings.

NoteNote:

The ASP.NET site navigation infrastructure guards against infinite recursion, which provides a safeguard and minimizes the security risk that is associated with accessing the CurrentNode property from within the. SiteMapResolveEventHandler class.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: