Skip to main content

ASPxButton.CommandName Property

Gets or sets the command name associated with the ASPxButton control that is passed to the ASPxButton.Command event.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public string CommandName { get; set; }

Property Value

Type Default Description
String String.Empty

A String value that specifies the command name of the ASPxButton control.


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


The ASPxButton.Command event is raised through the control hierarchy in the form of the BubbleEvent.

Additional information about the command may be specified by using the ASPxButton.CommandArgument property.


See Also