14.2. The SiteMapPath Control
The TreeView shows the available pages, but it doesn't indicate where you're currently positioned. To solve this problem, it's common to use the TreeView in conjunction with the SiteMapPath control. Because the SiteMapPath is always used for displaying navigational information (unlike the TreeView, which can also show other types of data), you don't even need to explicitly link it to the SiteMapDataSource:
<asp:SiteMapPath ID="SiteMapPath1" runat="server" />
The SiteMapPath provides breadcrumb navigation, which means it shows the user's current location and allows the user to navigate up the hierarchy to a higher level using links. Figure 14-8 shows an example with a SiteMapPath control when the user is on the product1.aspx ...
Get Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.