Using the SiteMap Class

Under the covers, the SiteMapDataSource control represents the contents of the SiteMap class. The SiteMap class represents an application’s Site Map regardless of whether the Site Map is stored in an XML file, a database, or some other data source. The class is a memory-resident representation of Site Map data.

All the properties exposed by the SiteMap class are shared (static) properties:

CurrentNode Enables you to retrieve the SiteMapNode that corresponds to the current page.

Enabled Enables you to determine whether the Site Map is enabled.

Provider Enables you to retrieve the default SiteMapProvider.

Providers Enables you to retrieve all the configured SiteMapProviders.

RootNode Enables you to retrieve ...

Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.