asp.net.ph

SiteMapPath.SiteMapProvider Property

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.

Syntax


Inline <asp:sitemappath sitemapprovider = strText ... >
Script SiteMapPath.SiteMapProvider = strText

Property Value


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".

Remarks

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.

See Also

SiteMapPath Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph