To complete the dashboard page, let's add a breadcrumb navigation UI element to each page. The breadcrum navigation bar quickly displays the user's current location on the site. Adding a breadcrumb navigation is simple in asp.net 2.0-you only need to add a SiteMapPath control to the page. No more code is needed.
In our site, add the breadcrumb navigation control to the <div> label in the header:
- < span class="breadcrumb">
- < asp:SiteMapPath ID="SiteMapPath1" runat="server">
- < /asp:SiteMapPath>
- < /span>
The breadcrum navigation control displays the page currently accessed by the user and its parent node until the root node is Home in our site map ).
Figure 12: Use the location navigation control to display the current page and its parent page at the site map level
- ASP. net mvc Path Selection System Construction
- URL path selection scenario in ASP. net mvc Framework
- URL path selection rules of ASP. net mvc Framework
- ASP. net mvc Framework: Use a strong type class to pass ViewData
- Use ASP. net mvc framework to create an e-commerce website