How site maps work in ASP.NET

ASP.NET includes a set of navigation features that you can use to implement a navigation system in your web based project. ASP.NET navigation is flexible, configurable, and pluggable. It has three components:

– With first component you can define the navigational structure of your website. This part is the XML site map, which is by default stored in the file.

– The second component parses the site map file and converts its information into suitable object model. This part is performed by SiteMapDataSource control and the XmlSiteMapProvider.

– The last component uses the site map information to display the user’s current position and gives the user the ability to easily move from one place to another. This part is provided through the controls you bind to the SiteMapDataSource control, which can include breadcrumb links, lists, menus, and trees.

You can customize or extend each of these parts separately. The next picture shows how these parts fit together:

 

ASP.NET navigation with site maps

ASP.NET navigation with site maps