problems with asp.net

nataliewild

New Member
I have a trouble in highlighting MENUITEM when clicked using Master page in asp.net. I am using master page in my asp.net project and i have menu1(as main menu),menu2(as home menu).Under main,i have 3 menuitems i.e- school,home and office.This are the source code for the main menu:\[code\]<asp:Menu ID="main" runat="server" BackColor="#009933" ForeColor="#000099" Height="25px" Orientation="Horizontal" Width="991px"> <StaticSelectedStyle BackColor="Red" /> <DynamicSelectedStyle BackColor="Red" /> <Items> <asp:MenuItem Text="school" Value="http://stackoverflow.com/questions/15541073/school"> </asp:MenuItem> <asp:MenuItem Text="home" Value="http://stackoverflow.com/questions/15541073/home"></asp:MenuItem> <asp:MenuItem Text="office" Value="http://stackoverflow.com/questions/15541073/office"></asp:MenuItem> </Items> </asp:Menu>\[/code\]By clicking "home" menuitem i have a link that opens another submenu called home,containing menuitem:-me,brother and sister. scr code:\[code\]<asp:Menu ID="home" runat="server" Orientation="Horizontal" Width="980px" Visible="False"> <StaticSelectedStyle BackColor="Red" /> <Items> <asp:MenuItem Text="me" Value="http://stackoverflow.com/questions/15541073/me" NavigateUrl="~/helo.aspx" ></asp:MenuItem> <asp:MenuItem Text="brother" Value="http://stackoverflow.com/questions/15541073/brother"></asp:MenuItem> <asp:MenuItem Text="sister" Value="http://stackoverflow.com/questions/15541073/sister"></asp:MenuItem> <asp:MenuItem Text="mother" Value="http://stackoverflow.com/questions/15541073/mother"></asp:MenuItem> </Items> </asp:Menu> \[/code\]The problem is that when i click menuitem "me" which has a "navigateurl" to link to other page,the "main and home menuitem" does not stay highlighted even though i have used "StaticSelectedStyle" to change the color...CAN ANY BODY HELP ME PLEASE...
 
Back
Top