October 2010
Intermediate to advanced
1920 pages
73h 55m
English
You can use a TreeView control as a navigation element in your pages by binding the TreeView to a Site Map. The page in Listing 22.21 demonstrates how you can bind a TreeView to a SiteMapDataSource control (see Figure 22.18).
Figure 22.18. Displaying a Site Map with a TreeView control.

Listing 22.21. UsingTreeView/TreeViewSiteMap.aspx

When you open the page in Listing 22.21, all the nodes from the Site Map display automatically in the TreeView control. By default, the SiteMapDataSource uses the XmlSiteMapProvider, which ...
Read now
Unlock full access