Hi All,
I am trying out the menu control that comes w/ asp.net 2.0.

I would like to have the nav items highlighted w/ a different background
color when a user is on that area. For example, I have "Home"
and "Home2" as the top menu items. When a user select "HOme," I
want to have this item's background color changed. W/ the code I
copied from the help file, it works. BUT after I
add 'NavigateUrl="~/home.aspx",' it no longer works. Is there anything
that I missed in the .master file?

Thanks in advance!
-- code ------------------------------------------------
<asp:menu id="Menu1"
        EnableViewState="true"
        staticdisplaylevels="2"
        staticsubmenuindent="10"
        orientation="Horizontal"
        target="_blank" 
        runat="server">
       
        <levelmenuitemstyles>
          <asp:menuitemstyle BackColor="SkyBlue"
            forecolor="Black"/>
          <asp:menuitemstyle BackColor="SkyBlue"
            forecolor="Black"/>
          <asp:menuitemstyle BackColor="LightSkyBlue"
            forecolor="Black"/>           
        </levelmenuitemstyles>
        <levelselectedstyles>
          <asp:menuitemstyle BackColor="#ffffcc"
           forecolor="red"/>
          <asp:menuitemstyle BackColor="LightCyan"
           forecolor="Gray"/>
          <asp:menuitemstyle BackColor="PaleTurquoise"
           forecolor="Gray"/>           
        </levelselectedstyles>   
     
        <items>
          <asp:menuitem text="Home"
            tooltip="Home" NavigateUrl="~/home.aspx" Target="_self">
                <asp:menuitem text="Music"
                  tooltip="Music">
                  <asp:menuitem text="Classical"
                    tooltip="Classical"/>
                  <asp:menuitem text="Rock"
                    tooltip="Rock"/>
                  <asp:menuitem text="Jazz"
                    tooltip="Jazz"/>
                </asp:menuitem>
          </asp:menuitem>
          <asp:menuitem text="Home2"
            tooltip="Home2" NavigateUrl="~/default.aspx" Target="_self">
                <asp:menuitem text="Music2"
                  tooltip="Music2">
                  <asp:menuitem text="Classical2"
                    tooltip="Classical2"/>
                  <asp:menuitem text="Rock2"
                    tooltip="Rock2"/>
                  <asp:menuitem text="Jazz2"
                    tooltip="Jazz2"/>
                </asp:menuitem>
           
                <asp:menuitem text="Movies"
                  tooltip="Movies">
                  <asp:menuitem text="Action"
                    tooltip="Action"/>
                  <asp:menuitem text="Drama"
                    tooltip="Drama"/>
                  <asp:menuitem text="Musical"
                    tooltip="Musical"/>
                </asp:menuitem>
               
          </asp:menuitem>
        </items>
     
      </asp:menu>





YAHOO! GROUPS LINKS




Reply via email to