Hello friends,
The web.sitemap is working fine on the main masterpage.
I wanna add the same on the
ManagementMaster.master page. I created new sitemap named
web2.sitemap file & gave a reference to it with the provider set to this new sitamap file in web.config file but it is not working.
in web.config file I added the following.
Code:
<siteMap enabled ="true ">
<providers>
<add name ="SiteFile1" type ="System.Web.XmlSiteMapProvider" siteMapFile="~/Web.sitemap"/>
<add name ="SiteFile2" type ="System.Web.XmlSiteMapProvider" siteMapFile="~/Web2.sitemap"/>
</providers>
</siteMap>
and in the Menu Control I added as following
Code:
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataource1"
Orientation="Horizontal" BackColor="#B5C7DE" DynamicHorizontalOffset="2"
Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98"
StaticSubMenuIndent="10px" >
<StaticSelectedStyle CssClass="StaticSelectedStyle" BackColor="#507CD1" />
<StaticMenuItemStyle CssClass="StaticMenuItemStyle" HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicMenuStyle BackColor="#B5C7DE" />
<DynamicSelectedStyle BackColor="#507CD1" />
<DynamicMenuItemStyle CssClass="DynamicMenuItemStyle" />
<DynamicHoverStyle CssClass="DynamicHoverStyle" BackColor="#284E98" ForeColor="White" />
<StaticHoverStyle CssClass="StaticHoverStyle" BackColor="#284E98" ForeColor="White" />
</asp:Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"
SiteMapProvider="SiteFile2" ShowStartingNode="False"/>
Any suggestion is respected.
Thank you..........