SiteMapDataSource Web Server Control
in ASP.NET environment,This article describes you how to work with SiteMapDataSource Web Control.Normally, The SiteMapDataSource control can be used to represent the navigation path such as one to another page. The SiteMapDataSource Web server control retrieves navigation data from a site-map provider, and then passes the data to controls that can display that data, such as the TreeView and Menu controls.
This data includes information about the pages in your Web site, such as the URL, title, description, and location in the navigation hierarchy. Storing your navigation data in one place makes it easier to add and remove items in the navigational menus of your Web site.
Display Site-Map Data in Non-Hierarchical Web Server Controls
in DOT.Net environment,we are able to bind site-map data to non-hierarchical controls, such as the DropDownList, CheckBoxList that display data in a linear, or flat, format. Site-map data is inherently hierarchical, which means that each node can contain zero or more child nodes. The TreeView and Menu controls are designed to work with hierarchical data.
The following code snippets shows an DropDownList control to display the site-map data from a Web.sitemap file.
in .aspx.cs file