Here is Code for Using Menu Control With SiteMapDataSOurce
Go TO Html Source
<div>
<asp:Menu ID="menuNavigator" runat="server" DisappearAfter="0" StaticSubMenuIndent="10px" StaticEnableDefaultPopOutImage="False" Orientation="Horizontal" StaticDisplayLevels="2" DataSourceID="SiteMapDataSource1" ItemWrap="True">
<DynamicMenuStyle Width="110px" HorizontalPadding="5px" />
</asp:Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
</div>
Now Add SiteMap File And Type This Code
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode>
<siteMapNode url="Parent.aspx" title="Organizations" description="">
<siteMapNode url="Child1.aspx" title="Organizations1" description="">
<siteMapNode url="SubCHild1.aspx" title="SubOrg1" description=""> </siteMapNode>
</siteMapNode>
<siteMapNode url="Child2.aspx" title="Organizations2" description="">
</siteMapNode>
</siteMapNode>
<siteMapNode url="Parent2.aspx" title="Insured" description="">
<siteMapNode url="Child21.aspx" title="Insured1" description=""> </siteMapNode>
<siteMapNode url="Child22.aspx" title="Insured2" description=""> </siteMapNode>
</siteMapNode>
<siteMapNode url="Parent3.aspx" title="Policies" description="">
<siteMapNode url="Child31.aspx" title="Preview" description=""></siteMapNode>
</siteMapNode>
<siteMapNode url="Parent4.aspx" title="Reporting" description="">
</siteMapNode>
<siteMapNode url="Parent5.aspx" title="Billing" description=""></siteMapNode>
</siteMapNode>
</siteMap>
Note:-This Code Only Use In ASP.NET
thankuuu so much for nice tutorial
ReplyDelete