ButtonType
Enum
Defines the button behavior when clicked by setting the HTML type attribute.
Definition
Fields
Creates a general-purpose button that performs no default form actions when clicked. Use this for buttons that execute custom logic through OnClick event handlers, such as "Cancel", "Show Details".
C#
Button = 1
Creates a form reset button that clears all form fields back to their initial values when clicked. Use this for "Clear Form", "Reset", or "Start Over" buttons.
C#
Reset = 2
Creates a form submission button that validates and submits the parent form when clicked. Use this for "Save", "Submit", or "Send" buttons that should process form data and trigger validation rules.
C#
Submit = 0