ASP.NET - Don't have a root node in SiteMap for menu use?

Using SiteMap associated with the menu (first time for both).

I would like the menu to be displayed horizontally with a few basic options, each with minor options.

So something like this:

alt text http://ts1.mm.bing.net/images/thumbnail.aspx?q=943731315644&id=e665eb8277e10731ca8ea1b676254170&url=http%3a%2f%2faskehbl.files.wordpress.com%2f2007%2f08%2fdrop

Right now I only have the root SiteMapNode and then the main / auxiliary parameters.

Not this way:

alt text http://www.beansoftware.com/ASP.NET-Tutorials/Images/Menu-XML.jpg

Do I need to change the SiteMap or menu settings?

+2


source to share


2 answers


I needed to set the "StaticDisplayLevels" property in the menu to 2 from the default of 1. This allows the "root" and "main categories" to be displayed horizontally, rather than all grouped under the "root".



+3


source


- setting the orientation to horizontal.



+2


source







All Articles