This tutorial shows how we can use two Menu controls to display the SiteMap in a hierarchical structure. The second menu’s display will depend upon the selection of the first menu. C# version.

We need to create a Web.sitemap:

There are two SiteMapDataSources; one for the first menu, and one for the second menu. The second SiteMapDataSource has the StartingNodeUrl set to Default.aspx?node=hardware
The ASPX code:

The C# code for the Click event for the first menu should look something like this:

Download Source Files