启用弹出窗口时,ASP.NET 菜单父菜单项在悬停时突出显示
我有一个 ASP.Net 菜单控件,具有三个级别并启用了弹出窗口。 每当用户将鼠标悬停在菜单项上时,我想突出显示父项(一直到顶级父项)。
我不想使用此处描述的客户端解决方案: http://www.codeproject.com/KB/webforms/AspMenuParentHighlighting.aspx
有没有优雅的服务器端解决方案?
亲切的问候。
I have a ASP.Net Menu Control with three levels and flyouts enabled.
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
Is there an elegant server side solution?
Kind regards.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我能想到的唯一服务器端解决方案是在页面加载时设置客户端解决方案。
您是否有理由想要构建此服务器端而不是客户端? 因为根据定义,强制这样的事件在服务器端发生是相当不优雅的。
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.