Server Side Events

The following server side event is available in Button control.


Event Description

Argument Details

OnClick Triggers when the button is clicked. Event Argument contains parameters are .Status – Status of Button.e.EventType – Event Name.Arguments – Contain keys and values for Status.

In the ASPX page, add the Button control to configure Button events.

  • html
  • <%--Add serverside event for button control as follows--%>
    <ej:Button ID="Button" runat="server" Type="Button" Text="button" Size="Mini" OnClick="Button_Click">

    The code Define Button_Click server side event in behind.

  • c#
  • protected void Button_Click(object sender, Syncfusion.JavaScript.Web.ButtonEventArgs e) {
    //e.Status – Status of Button
    //e.EventType – Event Name
    //e.Argument – Contain keys and values for Status