TechBubbles Microsoft Technology BLOG

Using the ASP.NET SiteMapPath Control


ASP.NET Navigation controls uses SiteMapPath control to retrieve the navigation information on the website. A SiteMap represent the relationship between the pages in an application. Site Maps Use the Provider Data model. This post explains about default XML Site Map provider, which enables you to store a Site Map in an XML file.

Site Map file contains <siteMpNode> elements. You declare a SiteMapPath control on page and it automatically uses the web.sitemap file located in the root directory.

Add a sitepath control to your we page. You do not need to add to every page in your web site, If you add a SiteMapPath control to a master page then you can display the control automatically on every page.

Adding SiteMapPath control to Masterpage


Add a sitemap xml file to your root in website. The file named with web.sitemap. root is the default location where sitemappath control looks for this file.


When you run the application you will see the following output


The solution structure for the project will look like


When you navigated to the Architecture department the site map looks like



In the next post I am going to explain about other navigation controls Menu,Tab and Tree View controls.

Share this post :

About the author

Kalyan Bandarupalli

My name is kalyan, I am a software architect and builds the applications using Microsoft .NET technologies. Here I am trying to share what I feel and what I think with whoever comes along wandering to Internet home of mine.I hope that this page and its contents will speak for me and that is the reason I am not going to say anything specially about my self here.


  • If you have any website and you want to maintain your reputation or you want to make your unique identity on internet world then you can contact with us we help you to make your website and we help you to make your unique identity. Our SEO team helps you to increase the ranking of your website or maintain your website on the top of the Google. We have the best team in our company with great experience. We are always ready to help you and support you in your business.

TechBubbles Microsoft Technology BLOG

Follow me


Tag Cloud