Hi,
i have the following problem:
I am using a asp:menu Control for Navigation. At the MenuItemDataBound-Event I check if the user is logged in. If the user is logged in, i do nothing (menu-item is enabled and contains a selectable submenu). If the user is not logged in I disable the menu-item and would like to add a clientside onmouseover and onmouseout to show a div containing explanation-text.
But i don't know how to add these clientside event-handlers to the menu-item. I tried to cast the e.Item to an htmlAnchor, doesn't work. Someting like this:
( (HtmlAnchor)e.Item ).Attributes.Add( "onMouseOver", "showHint();" );
( (HtmlAnchor)e.Item ).Attributes.Add( "onMouseOut", "hideHint();" );
Anybody any Idea?