System.Web.UI.WebControls.MenuEventArgs Class

Provides data for the Menu.MenuItemClick and Menu.MenuItemDataBound events of a System.Web.UI.WebControls.Menu control. This class cannot be inherited.

See Also: MenuEventArgs Members

Syntax

public sealed class MenuEventArgs : CommandEventArgs

Remarks

The System.Web.UI.WebControls.MenuEventArgs class is used to store the event data passed to an event handler for the events in the following table.

Menu.MenuItemClick

Occurs when a menu item is clicked. This event is commonly used to synchronize a System.Web.UI.WebControls.Menu control with another control on the page.

Menu.MenuItemDataBound

Occurs when a menu item is bound to data. This event is commonly used to modify a menu item before it is rendered in a System.Web.UI.WebControls.Menu control.

Depending on the event raised, you can access the menu item clicked by the user or the menu item being bound to data by using the MenuEventArgs.Item property.

For a list of initial property values for an instance of the System.Web.UI.WebControls.MenuEventArgs class, see the MenuEventArgs.#ctor(MenuItem) constructor.

Requirements

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