SiteMap file Horizontal Display.....how???

Posted by Ankitsrist under ASP.NET on 12/13/2012 | Points: 10 | Views : 3275 | Status : [Member] | Replies : 3
Is it possible to create a horizontal menu using the below sitemap file? The menu should display.....
home menu1 menu2 menu3 menu4>menusub1 etc.......

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

<siteMapNode url="home.aspx" title="Home" description="">
<siteMapNode url="menu1.aspx" title="menu1" description="shows menus">
</siteMapNode>
<siteMapNode url="menu2.aspx" title="menu2" description="">
<siteMapNode url="menu3.aspx" title="menu3" description="" />
</siteMapNode>
<siteMapNode url="menu4.aspx" title="menu4" description="">
<siteMapNode url="menu4sub1.aspx" title="menu4sub1" description="" />
<siteMapNode url="menu4sub2.aspx" title="menu4sub2" description="" />
</siteMapNode>
<siteMapNode url="menu5.aspx" title="menu5" description="">
<siteMapNode url="menu5sub1.aspx" title="menu5sub1" description=""/>
<siteMapNode url="menu5sub2.aspx" title="menu5sub2" description=""/>
</siteMapNode>
</siteMapNode>

</siteMap>

The problem with the current sitemap is that everything is under the top "Home" node. and i also set orientation=horizontal but still not getting.....i know this problem is nothing but annoying me....please help




Responses

Posted by: Ranjeet_8 on: 12/13/2012 [Member] [MVP] Gold | Points: 25
Posted by: Ankitsrist on: 12/13/2012 [Member] Starter | Points: 25

Up
0
Down
ohho ranjeet sir the links that u have shared made my problem solved....actually the problem was in my menu item i have not mentioned this StaticDisplayLevels="2" in my menu control and when i added this...my menu goes horizontal thanks sir

Ankitsrist, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ranjeet_8 on: 12/13/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
@Ankitsrist
Please Mark As Answer if post helps you.

Ankitsrist, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response