menu not showing sub menu in horizontal mode

In ASP.NE 2.0 with with C# I have a menu with a sitemap. one of the nodes has 3 subnodes with url links.
I want to get a horisontal menu with sub menus.
If I decalre it like this:
<asp:SiteMapDataSource   runat="server" ID="SiteMapDataSource1"  />
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1"   Orientation="Horizontal"
 MaximumDynamicDisplayLevels="0" StaticDisplayLevels="2">
</asp:Menu>
I get a horizontal menu but the node with the sub menus does not show the sub menu.
If I declare it like this:
<asp:SiteMapDataSource   runat="server" ID="SiteMapDataSource1"  />
<asp:Menu ID="mnuHeader" runat="server" DataSourceID="SiteMapDataSource1"    Orientation="Horizontal" >
</asp:Menu>
I get a vetical menu and the sub menu is opened correctly.
Why can't I have the same in horizontal appearance?
I also show you the web.sitemap. (by the way the menu is in static mode)
<?xml version="1.0" encoding="utf-8" ?>
<siteMap>
  <siteMapNode url="~/electronics.aspx" title="Electronics"  description="">
      <siteMapNode  title="Computers"  description="" >
            <siteMapNode url="http://cnn.com"  title="CNN"  description="" />
            <siteMapNode url="http://msnbc.com"  title="MSNBC"  description="" />
            <siteMapNode url="http://news.bbc.co.uk"  title="BBC News"  description="" />
      </siteMapNode>
      <siteMapNode url="~/default3.aspx" title="Home &amp; Garden"  description="" />
      <siteMapNode url="~/default4.aspx" title="Clothing"  description="" />
      <siteMapNode url="~/default8.aspx" title="Entertainment"  description="" />
  </siteMapNode>
</siteMap>
please help
Anat
ANAT2403Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
1) I have Visual Studio.NET 2005 Team Edition SP1

2) It showed a menu with sub-menus for me.

3) Can you post a screen shot to http://www.ee-stuff.com, and give me the URL for the file?

Bob
Bob LearnedCommented:
ANAT2403Author Commented:
Hi Bob,
I sent you 2 files: one is the web.sitemap. the other is a file in which I put 2 menus: if you run it you see that the first menu is horizontical but does not show the sub menus for computers. the second menu is vertical and does show the sub menu for computer. I want a menu to be horizontical and show the sub menu for computers.
thankyou
anat
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

ANAT2403Author Commented:
Bob LearnedCommented:
1) You only have 1 static level

2) You set MaximumDynamicDisplayLevels="0"

3) You need to set MaximumDynamicDisplayLevels="1", or higher, to show the dynamic sub-menus.

Bob

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ANAT2403Author Commented:
Hi Bob,
Thankyou very much. It finally worked. I just have some questions:
Although it worked good when I changed to the design view there was a message error on the menu:
"Error parsing control: A relative URI cannot be created because the 'uriString' parameter represents an absolute URI" Do you know why?
It worked when  staticdisplayLevel ="2" and MaximumDynamicDisplayLevels ="1"
Anat
ocortesCommented:
Hello,
Do you know how to fix the error in design view? I have a similar problem and it works fine on the web browser but not in design and I will like to fix it.

Thank you,
Oswaldo
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.