[英]ASP.NET Menu Parent Menu Item Highlighting on Hover when Flyouts are enabled
I have a ASP.Net Menu Control with three levels and flyouts enabled.我有一个启用了三个级别和弹出窗口的 ASP.Net 菜单控件。 I want to highlight the parent items (right upto the top level parent) whenever a user hovers over the menu items.每当用户将鼠标悬停在菜单项上时,我想突出显示父项(一直到顶级父项)。
I do not want to use a client side solution as described here: http://www.codeproject.com/KB/webforms/AspMenuParentHighlighting.aspx我不想使用此处描述的客户端解决方案: http : //www.codeproject.com/KB/webforms/AspMenuParentHighlighting.aspx
Is there an elegant server side solution?有没有优雅的服务器端解决方案?
Kind regards.亲切的问候。
The only server side solution I can think of would be to set the client side solution on page load.我能想到的唯一服务器端解决方案是在页面加载时设置客户端解决方案。
Is there a reason that you would want to build this server side rather than client side?您是否有理由想要构建此服务器端而不是客户端? Because forcing an event like this to occur server side is, by definition, rather inelegant.因为根据定义,强迫这样的事件在服务器端发生是相当不雅的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.