System.Web.UI.WebControls.Menu.MenuItemClick Event

Occurs when a menu item in a System.Web.UI.WebControls.Menu control is clicked.


public event MenuEventHandler MenuItemClick


The Menu.MenuItemClick event is raised when a menu item is clicked in a System.Web.UI.WebControls.Menu control. This allows you to provide an event handler that performs a custom routine, such as synchronizing with another control on the page, whenever this event occurs.

A System.Web.UI.WebControls.MenuEventArgs object is passed to the event handler, which allows you to access the properties of the menu item that raised the event.

For more information about handling events, see Consuming Events.


Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0