Web.config
<siteMap> <providers> <add siteMapFile="topNavigation.sitemap" name="TopNavigationSiteMapProvider" type="System.Web.XmlSiteMapProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <add siteMapFile="leftNavigation.sitemap" name="leftNavigationSiteMapProvider" type="System.Web.XmlSiteMapProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </providers> </siteMap>
Markup
<asp:SiteMapDataSource ID="smdTopNavigation" SiteMapProvider="TopNavigationSiteMapProvider" runat="server" /> <asp:Menu runat="server" ID="mnuTopNavigation" DataSourceID="smdTopNavigation" /> <asp:SiteMapDataSource ID="smdLeftNavigation" SiteMapProvider="LeftNavigationSiteMapProvider" runat="server" /> <asp:Menu runat="server" ID="menuLeftNavigation" DataSourceID="smdLeftNavigation" />
No comments:
Post a Comment