G
gjergj
Hi,
I am trying to use the menu control to create a menu similar to the one
that ASP.net site has and I am having a little trouble. The menu is
binded to a sitemapdatasource and are both placed on a master page. The
sitemapdatasource has ShowStartingMode set to false and the sitemap
file looks like:
StartNode
Home
Reports
Report 1
Report 2
Report 3
Projects
Project
The Menu control looks like:
<asp:Menu ID="Menu1" runat="server"
DataSourceID="SiteMapDataSource1" MaximumDynamicDisplayLevels="0"
Orientation="Horizontal" EnableViewState="true" StaticDisplayLevels=2>
<StaticMenuItemStyle BackColor=Aqua />
<StaticSelectedStyle BackColor=Beige />
</asp:Menu>
The problem I am having is that when the user clicks through a link on
the page that leads to Report 1, nothing is selected in the menu - but
i need the Reports to be selected as Report 1 is a child of Reports.
Any idea on how to solve this problem?
thanks
tony
I am trying to use the menu control to create a menu similar to the one
that ASP.net site has and I am having a little trouble. The menu is
binded to a sitemapdatasource and are both placed on a master page. The
sitemapdatasource has ShowStartingMode set to false and the sitemap
file looks like:
StartNode
Home
Reports
Report 1
Report 2
Report 3
Projects
Project
The Menu control looks like:
<asp:Menu ID="Menu1" runat="server"
DataSourceID="SiteMapDataSource1" MaximumDynamicDisplayLevels="0"
Orientation="Horizontal" EnableViewState="true" StaticDisplayLevels=2>
<StaticMenuItemStyle BackColor=Aqua />
<StaticSelectedStyle BackColor=Beige />
</asp:Menu>
The problem I am having is that when the user clicks through a link on
the page that leads to Report 1, nothing is selected in the menu - but
i need the Reports to be selected as Report 1 is a child of Reports.
Any idea on how to solve this problem?
thanks
tony