How to Highlight dynamically loaded menu item in ASP.Net?
i am facing some problem with Menu item highlighting on user selection.
I am loading all menu items from database, I used
StaticMenuItemStyle CssClass="Item"
StaticSelectedStyle CssClass="ItemSelected"
StaticHoverStyle CssClass="ItemHover"
and
DynamicSelectedStyle CssClass="ItemSelected"
But it is not working for me.
Is there suggestions or 开发者_如何学编程any ideas please share with me.
Thanks in Advance.
if your menu having <li>...<a>..</a></li>
structure apply the highlighting on the "li" and add these attributes also:
<li onmouseout="unselect(this)" onmouseover="select(this)">
which is handling the mouse events using javascript.
hope that's will help!
精彩评论