System.Web
2.0.0.0
System.Web.UI.WebControls.CommandEventArgs
The event is raised when a button within the control is clicked. This allows you to provide an event-handling method that performs a custom routine whenever this event occurs.
The control also raises other specialized events when certain buttons are clicked (buttons with the CommandName property set to "Delete", "Update", and "Page" for example). When using one of these buttons, you should consider handling one of the specialized events provided by the control (such as or ).
A object is passed to the event-handling method, which allows you to determine the command name and command argument of the button clicked. To determine the command name and command argument, use the and properties, respectively. You can also access the button control that raised the event by using the property.
For more information about handling events, see Consuming Events.
For a list of initial property values for an instance of , see the constructor.
Provides data for the event.
Constructor
To be added.
To be added.
Use this constructor to initialize a new instance of the class.
The following table shows the initial property values for an instance of .
-
Property
Initial value
-
The value of the property of the object contained in the parameter.
-
The value of the property of the object contained in the parameter.
-
The object contained in the parameter.
This constructor is used primarily by control developers when raising events.
Initializes a new instance of the class using the specified source of the command and event arguments.
2.0.0.0
Constructor
To be added.
To be added.
Use this constructor to initialize a new instance of the class.
The following table shows the initial property values for an instance of .
-
Property
Initial value
-
The value of the property of the object contained in the parameter.
-
The value of the property of the object contained in the parameter.
-
The object contained in the parameter.
This constructor is used primarily by control developers when raising events.
Initializes a new instance of the class using the specified row, source of the command, and event arguments.
A object that represents the row containing the button.
2.0.0.0
Property
System.Object
To be added.
Use the property to access the properties of the object that represents the source of the command. In the case of a object, the source of the command is the control that contains the button clicked by the user.
Gets the source of the command.
2.0.0.0