SiteMapPath |
| Sanjay Verma replied to kalit sikka at 04-Jul-08 06:08 |
The SiteMapPath control displays a list of links representing the user's current page and the hierarchal path back to the root of the website. This functionality is sometimes referred to as a breadcrumb for the user. SiteMapPath Control and Data Retrieval The SiteMapPath control relies on a SiteMapProvider to retrieve the data that it will display. Unlike the Menu or Treeview control the SiteMapPath control does NOT use a SiteMapDataSource control and can not be bound to other hierarchal datasource controls.
The default SiteMap provider will automatically be used by the control or you can set the SiteMapProvider property on the control to point to any provider already configured in the web.config file. The SiteMapPath control will only display on a page whose URL is contained within the specified SiteMapPath provider. NOTE: This is a typical error that developers encounter � so if the SiteMapPath control does not appear when you run your page check to make sure the page is listed correctly (no typos) in the SiteMapPath providers data store, the web.sitemap file.
The SiteMapPath control will automatically take advantage of the security trimming, URL remapping and Localized Site Map data features of the Site Navigation API.
See the following article to see the example of sitemappath.
http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/navigation/sitemappath.aspx
Hope it helps. |
| Biography |
| Asp.Net Developer |
|