The Menu Control

You can have your menu control get its data 3 different ways:

1. Have it read from the web.sitemap
2. Type in all of the items you want displayed using the GUI
3. Have it read from an XML page


Menu Control with datasource set to web.sitemap

1. Create a web.sitemap with the pages of your site.
2. Place a menu control on the page.
...Choose DataSource and select SiteMap
This will automatically pull the information from your web.sitemap file and place it in your menu. 

Menu Control with items manually typed in:

1. Create a web.sitemap with the pages of your site.
2. Place a menu control on the page.
...Choose DataSource and select SiteMap
This will automatically pull the information from your web.sitemap file and place it in your menu.
3. Set Properties of the SiteMapDataSource:
-If you don't want your HOME page displayed in the code of SiteMapDataSource type: ShowStartingNode=false
4. Set Properties of the Menu Control: -Set Orientation to Horizontal or Vertical !

Skip Navigation Links

SoccerExpand Soccer
FootballExpand Football
SwimmingExpand Swimming


Menu with datasource set to XML file

1. Create an XML file with the pages you want for the menu.
2. Place a menu control on the page.
3. Choose DataSource and select XMLSiteMap
4. You will need to create an XPATH file too

 

 

PROPERTIES:

There are numerous properties you can set on your menu control. Here is an image of some of the settings I used for a menu control on another site. Below the image is a list of some of the properties that can be reviewed.



Look at the image


Skip Navigation Links
SoccerExpand Soccer
FootballExpand Football
SwimmingExpand Swimming



View this website using a menu control.


View this website where I added images into the dropdown items of the menu control.