System.Web.UI.WebControls.CommandEventArgs Class

Provides data for the Command event.

See Also: CommandEventArgs Members

Syntax

public class CommandEventArgs : EventArgs

Remarks

The Command event is raised when a System.Web.UI.WebControls.Button or System.Web.UI.WebControls.ImageButton control is clicked.

The System.Web.UI.WebControls.CommandEventArgs object contains data about the Command event that can be accessed in the event handler. Using the properties available in the System.Web.UI.WebControls.CommandEventArgs class, you can determine the name of the command to perform, such as Sort, in addition to an optional argument that supplements the command, such as Ascending.

For a list of initial property values for an instance of System.Web.UI.WebControls.CommandEventArgs, see the erload:System.Web.UI.WebControls.CommandEventArgs.#ctor constructor.

For more information about handling events, see [<topic://cpconEventsOverview>].

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0