Skip to main content
Tab

ASPxButton.Click Event

Fires when the button is clicked.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll

NuGet Package: DevExpress.Web

Declaration

public event EventHandler Click

Event Data

The Click event's data class is EventArgs.

Remarks

Handle the Click event to perform server-side processing of button clicks.

Note

When some buttons are used in a group (their ASPxButton.GroupName properties are set to the same value) a click on a checked button doesn’t raise the Click event.

Example

The complete sample project is available in the DevExpress Code Central database: How to add buttons to a pop-up window .

<dx:ASPxButton ID="btnOK" runat="server" AutoPostBack="False" Text="OK" Width="80px"
    OnClick="btnOK_Click">
    <ClientSideEvents Click="function(s, e) { popupControl.Hide();
            // Processes data on the client
            e.processOnServer = true;
            // Processes data on the server
        }" />
</dx:ASPxButton>
protected void Page_Load(object sender, EventArgs e) {
}

protected void btnOK_Click(object sender, EventArgs e) {
    // Processes data on the server
    ASPxTextBox1.Text = ASPxTextBox2.Text;
}

Implements

See Also