System.Web.UI.WebControls Namespace SiteMapPath Class
.NET Framework version 2.0
Sets or retrieves the name of the SiteMapProvider used to render the site navigation control.
Inline |
<asp:sitemappath sitemapprovider = strText ... > |
Script |
SiteMapPath.SiteMapProvider = strText |
strText |
The name of a SiteMapProvider that defines the navigation structure for the SiteMapPath to display. |
The property is read/write with a default value of "XmlSiteMapProvider".
Use the SiteMapProvider property to specify or determine the name of a SiteMapProvider that defines the navigation structure for the SiteMapPath to display.
The SiteMapPath control uses a SiteMapProvider as a source for the site map data it renders. If the SiteMapProvider property is not set, the SiteMapPath control uses the provider identified by the SiteMap.Provider property, which is the default SiteMapProvider defined for the site in the configuration hierarchy, typically the XmlSiteMapProvider. Setting the SiteMapProvider property directs the SiteMapPath control to render the site map data that the provider defines.
The SiteMapPath control works directly with a SiteMapProvider and its SiteMapNode objects to display site map information. Other controls, such as Menu and TreeView, require a data abstraction, provided by the SiteMapDataSource class, to display the same site navigation information.
All available providers are contained in the SiteMap.Providers collection, and can be enumerated and retrieved by name using the Item property.
SiteMapPath Members