Tab
A newer version of this page is available. Switch to the current version.

ASPxButton.Command Event

Occurs when the ASPxButton control is clicked.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public event CommandEventHandler Command
Public Event Command As CommandEventHandler

Event Data

The Command event's data class is CommandEventArgs. The following properties provide information specific to this event:

Property Description
CommandArgument Gets the argument for the command.
CommandName Gets the name of the command.

Remarks

The Command event is raised when the ASPxButton control is clicked. This event is commonly used when a command name, such as Sort, is associated with the ASPxButton control via the ASPxButton.CommandName property. This allows you to create multiple ASPxButton controls on a web page and programmatically determine which ASPxButton control is clicked.

Note that the specificity of the Command event is that it is raised through the control hierarchy in the form of the BubbleEvent.

Implements

See Also