简体   繁体   English

ASP.NET(C#)菜单/菜单项事件/事件处理

[英]asp.net (c#) menu/menuItem event/event-handling

Is it possible to use asp.net standard Menu (server-control) for tasks other than navigation? 是否可以将asp.net标准菜单(服务器控件)用于导航以外的任务?

For example: I want to use asp.net menu to add a button control to the asp.net panel (server-control). 例如:我想使用asp.net菜单将按钮控件添加到asp.net面板(服务器控件)。

This idea of mine is basically came from the winforms environment, where there are events and event-handlers for menu and menu-items. 我的想法基本上来自winforms环境,那里有用于菜单和菜单项的事件和事件处理程序。

是的,您可以在MenuItemClick事件处理程序期间执行任何操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM