Server Side Events

9 Mar 20161 minute to read

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