ASP. NET 2.0 data Tutorial: Add breadcrumb navigation

Source: Internet
Author: User

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:

 
 
  1. < span class="breadcrumb">  
  2.     < asp:SiteMapPath ID="SiteMapPath1" runat="server">  
  3.     < /asp:SiteMapPath>  
  4. < /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

  1. ASP. net mvc Path Selection System Construction
  2. URL path selection scenario in ASP. net mvc Framework
  3. URL path selection rules of ASP. net mvc Framework
  4. ASP. net mvc Framework: Use a strong type class to pass ViewData
  5. Use ASP. net mvc framework to create an e-commerce website

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.