SiteMapDataSource Web Server Control Overview
The SiteMapDataSource Web server control is used with ASP.NET Site Navigation. The SiteMapDataSource retrieves navigation data from a site map provider and passes the data to controls that can display that data, such as the TreeView and Menu controls.
This topic contains:
The SiteMapDataSource control obtains navigation data from a site map. 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.
In earlier versions of ASP and ASP.NET, when you added a page to your Web site and then added a link to that new page from every other page in the Web site, you had to add the links manually, include a common file, or develop custom navigation functionality. ASP.NET version 2.0 includes navigation controls that make it easier for you to create, customize, and maintain navigational menus.
The following table lists the key classes that relate to the SiteMapDataSource control.
The main class for the control.
Displays a set of text or image hyperlinks and can bind to the SiteMapDataSource control.
Displays hierarchical data in a tree structure and can bind to the SiteMapDataSource control.
Displays a menu and can bind to the SiteMapDataSource control.