A
ajmister
Hi
I am new to asp.net and need help with menu control. I have a master
page which has a menu control that uses a Sitemap. The submenu is hidden on
the masterpage when viewed in Visual express window but displays the submenu
when viewing the page on the clients side.Admin
Sales
Contact Information
About Us
-----My Code--
<asp:Menu ID="Menu1" DataSourceID="SiteMapDataSource1" runat="server"
BackColor="#FFFFFF" DynamicHorizontalOffset="2" Font-Names="Verdana"
ForeColor="#090E8C" StaticSubMenuIndent="10px">
<StaticSelectedStyle BackColor="#FFFFFF" ForeColor="#090E8C" />
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<StaticHoverStyle BackColor="#090E8C" Font-Bold="False"
ForeColor="#8E8E99" />
<DynamicMenuStyle BackColor="#8E8E99" ForeColor="#090E8C" />
<DynamicSelectedStyle BackColor="#8E8E99" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicHoverStyle BackColor="#090E8C" Font-Bold="False"
ForeColor="#8E8E99" />
</asp:Menu>
----Sitemap--
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="Default.aspx" title="Home" description="Home Page">
<siteMapNode url="~/Admin/admin.aspx" title="Admin"
description="Administration Webpage" >
<siteMapNode url="~/Admin/AFeedPage.aspx" title="A feed"
description="A Administration Webpage" />
<siteMapNode url="~/Admin/BFeedPage.aspx" title="B feed"
description="B Administration Webpage" />
</siteMapNode>
<siteMapNode url="~/Sales/sales.aspx" title="Sales"
description="WebPage for Sales Team to check" >
<siteMapNode url="~/Sales/Asales.aspx" title="A Sales feed"
description="WebPage for Sales Team to check" />
<siteMapNode url="~/Sales/Bsales.aspx" title="B Sales information"
description="Audit Report for Sales Team" />
</siteMapNode>
</siteMapNode>
<siteMapNode url="~/Allusers/ContactInfo.aspx" title="Contact
Information" description="User Contact Information" roles="*" />
<siteMapNode url="~/Allusers/AboutUS.aspx" title="About Us"
description="About US" roles="*" />
</siteMapNode>
</siteMap>
Aj
I am new to asp.net and need help with menu control. I have a master
page which has a menu control that uses a Sitemap. The submenu is hidden on
the masterpage when viewed in Visual express window but displays the submenu
when viewing the page on the clients side.Admin
Sales
Contact Information
About Us
-----My Code--
<asp:Menu ID="Menu1" DataSourceID="SiteMapDataSource1" runat="server"
BackColor="#FFFFFF" DynamicHorizontalOffset="2" Font-Names="Verdana"
ForeColor="#090E8C" StaticSubMenuIndent="10px">
<StaticSelectedStyle BackColor="#FFFFFF" ForeColor="#090E8C" />
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<StaticHoverStyle BackColor="#090E8C" Font-Bold="False"
ForeColor="#8E8E99" />
<DynamicMenuStyle BackColor="#8E8E99" ForeColor="#090E8C" />
<DynamicSelectedStyle BackColor="#8E8E99" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicHoverStyle BackColor="#090E8C" Font-Bold="False"
ForeColor="#8E8E99" />
</asp:Menu>
----Sitemap--
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="Default.aspx" title="Home" description="Home Page">
<siteMapNode url="~/Admin/admin.aspx" title="Admin"
description="Administration Webpage" >
<siteMapNode url="~/Admin/AFeedPage.aspx" title="A feed"
description="A Administration Webpage" />
<siteMapNode url="~/Admin/BFeedPage.aspx" title="B feed"
description="B Administration Webpage" />
</siteMapNode>
<siteMapNode url="~/Sales/sales.aspx" title="Sales"
description="WebPage for Sales Team to check" >
<siteMapNode url="~/Sales/Asales.aspx" title="A Sales feed"
description="WebPage for Sales Team to check" />
<siteMapNode url="~/Sales/Bsales.aspx" title="B Sales information"
description="Audit Report for Sales Team" />
</siteMapNode>
</siteMapNode>
<siteMapNode url="~/Allusers/ContactInfo.aspx" title="Contact
Information" description="User Contact Information" roles="*" />
<siteMapNode url="~/Allusers/AboutUS.aspx" title="About Us"
description="About US" roles="*" />
</siteMapNode>
</siteMap>
Aj