Skip to main content

ASPxClientButton.DoClick Method

Simulates a mouse click action on the button control.

Declaration

DoClick(): void

Remarks

Calling this method is equivalent to a user clicking the button control.

Example

This example illustrates how to emulate the Tab key using the Enter key.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page {
    protected void Page_Load (object sender, EventArgs e) {

    }
    protected void btn_Click (object sender, EventArgs e) {

    }
}
See Also