Button types

4 Mar 20161 minute to read

Toggle Button is used as normal click able button, for submitting form data, and resetting the form data to its initial value. According to the usage of button, you can render the Toggle Button in the following three types by using the Type property.

Button The button is a click able button.
Submit The button is a submit button (submits form-data).
Reset The button is a reset button (resets the form-data to its initial values).

In the ASPX page, add the following button elements to configure the Toggle Button.

  • HTML
  • <ej:ToggleButton ID="ToggleButton" runat="server" Size="Mini" ShowRoundedCorner="true"
        DefaultText="button" ActiveText="done" Type="Button">
    <br />
    <ej:ToggleButton ID="Submit_ToggleButton" runat="server" Size="Mini" ShowRoundedCorner="true" DefaultText="submit" ActiveText="done" Type="Submit">
    <br />
    <ej:ToggleButton ID="Reset_ToggleButton" runat="server" Size="Mini" ShowRoundedCorner="true" DefaultText="reset" ActiveText="done" Type="Reset">

    Run the above code to render the following output.