I have added this
Hortizontal Submenu with Horizontal Menu using CSS Friendly Menu Control Adapter in C# in my ASP.Net 3.5(C#) website. But its not working correctly because it is displaying Home as the only Menu item and all the other sitenodes as its subMenu. It worked
perfectly fine without adapter but after adding adapter menu is just left with single menu item and all other items become its submenu items.
I know all the site map nodes are inside the Home site map node but it works perfect without css adapter and with them menu become weired with only one item Home and every other node become its sub items.
P.S. Web.sitemap is the dataSource of my ASP.Net 3.5 menu control with horizontal orientation.
Please also tell why the site map in above mentioned tutorial's is weired like why its first node/root node is not showing?
I've not use that control, but I presume you've set StaticDisplayLevels="2" on the Menu control? Assuming, of course, that this particular adapter supports it.
dazy
Member
119 Points
258 Posts
CSS Menu Adapter is showing my Menu in the correct way?
Jan 08, 2011 09:22 PM|LINK
Hi,
I have added this Hortizontal Submenu with Horizontal Menu using CSS Friendly Menu Control Adapter in C# in my ASP.Net 3.5(C#) website. But its not working correctly because it is displaying Home as the only Menu item and all the other sitenodes as its subMenu. It worked perfectly fine without adapter but after adding adapter menu is just left with single menu item and all other items become its submenu items.
My siteMap structure is as follows-
<siteMap> <siteMapNode title="Home" description="Home" url="~/default.aspx"> <siteMapNode title="Products" description="Our products" url="~/Products.aspx" /> <siteMapNode title="Services" description="Services we offer" url="~/Services.aspx" /> <siteMapNode title="Training" description="Training classes" url="~/Training.aspx" /> <siteMapNode title="Consulting" description="Consulting services" url="~/Consulting.aspx" /> <siteMapNode title="Support" description="Supports plans" url="~/Support.aspx" /> <siteMapNode title="Hardware" description="Hardware choices" url="~/Hardware.aspx" /> <siteMapNode title="Software" description="Software choices" url="~/Software.aspx" /> </siteMapNode> </siteMap>I know all the site map nodes are inside the Home site map node but it works perfect without css adapter and with them menu become weired with only one item Home and every other node become its sub items.
P.S. Web.sitemap is the dataSource of my ASP.Net 3.5 menu control with horizontal orientation.
Please also tell why the site map in above mentioned tutorial's is weired like why its first node/root node is not showing?
Regards,
Dazy
Dave Sussman
All-Star
37716 Points
5005 Posts
ASPInsiders
MVP
Re: CSS Menu Adapter is showing my Menu in the correct way?
Mar 30, 2011 08:13 AM|LINK
I've not use that control, but I presume you've set StaticDisplayLevels="2" on the Menu control? Assuming, of course, that this particular adapter supports it.