Hi Russ,
Thanks so much for you detailed answer. I will look into these links and try to follow.
Actually, after a long night, I'm in pretty good position: it basically works. The only problem I have now,
is that the selected state does not work. I use these 3 rules:
.PrettyMenu
.AspNet-Menu-Selected
.PrettyMenu
.AspNet-Menu-ChildSelected
.PrettyMenu .AspNet-Menu-ParentSelected
and something really strange happens:
menu items that have NavigateUrl, are not marked as "selected".
Menu items that does not have NavigateUrl, are marked nicely.
Let me show an example:
<asp:Menu ID="menu1" runat="server" Orientation="horizontal" CssSelectorClass="PrettyMenu" Width="450px">
<Items>
<asp:MenuItem Text="Menu 1" NavigateUrl="~/test.aspx" Value="Menu 1">
<asp:MenuItem Text="Option1" Value="Option1" NavigateUrl="~/test4.aspx"></asp:MenuItem> // not working.
<asp:MenuItem Text="Option2" Value="Option2"></asp:MenuItem> // working
</asp:MenuItem>
<asp:MenuItem Text="Menu 2" Selectable="false" Value="Menu 2" >
<asp:MenuItem Text="Option3" Value="Option3" NavigateUrl="~/test5.aspx" />
</asp:MenuItem>
<asp:MenuItem Text="Menu 3" NavigateUrl="~/test3.aspx" Value="Menu 3" />
</Items>
</asp:Menu>
by "not working" I mean that when you click that menu option, it goes to the right page, but the menu option is not colored as should be, as defined in the css AspNet-Menu-ChildSelected rule.
If you have any clue for me, that would be great.
Thanks,
Gili