System.Web 2.0.0.0 System.Web.UI.WebControls.CommandEventArgs

The class is used to store the event data passed to an event handler for the events in the following table.

Event

Description

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

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 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 property.

For a list of initial property values for an instance of the class, see the constructor.

Provides data for the and events of a control. This class cannot be inherited.

- Constructor

  Use this constructor to create a new instance of the class from the specified menu item. The following table shows initial property values for an instance of the class.

  Property

  Initial value

  null

  null

  The object specified by the parameter.

  Initializes a new instance of the class using the specified menu item.

  For the event, this parameter represents the menu item clicked by the user. For the event, this parameter represents the menu item being bound to data.
  2.0.0.0
- Constructor
  To be added.
  To be added.

  Use this constructor to create a new instance of the class from the specified menu item, command source, and event arguments. The following table shows initial property values for an instance of the class.

  Property

  Initial value

  The value of the parameter.

  The value of the parameter.

  The specified by the parameter.

  The object specified by the parameter.

  Initializes a new instance of the class using the specified menu item, command source, and event arguments.

  For the event, this parameter represents the menu item clicked by the user. For the event, this parameter represents the menu item being bound to data.
  2.0.0.0
- Property
  System.Object To be added.

  Use the property to access the that raised the event.

  Gets the that raised the event.

  2.0.0.0
- Property
  System.Web.UI.WebControls.MenuItem To be added.

  Use the property to access or modify the properties of the menu item associated with the event raised. For the event, this item represents the menu item clicked by the user. For the event, this item represents the menu item being bound to data.

  Gets the menu item associated with the event raised.

  2.0.0.0