HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Button control is used to display a push button.
Button control is used to display a push button. Push button may be a submit button or a command button. By default, this control is a submit button.
Submit button does not have a command name when it is clicked, it will transfer the page back to the server. You can write some event handlers, when the submit button is clicked, used to control the implementation of the action.
Command button has a command name, and allows you to create multiple Button controls on a page. You can write some time to handle, when the command button is clicked, it used to control the implementation of the action.
Button control properties and attributes listed in our WebForms Controls reference page .
The following example demonstrates a simple Button control:
Forms often submitted by clicking the button.
In the following example, we declare a TextBox control in an x file, a Button control and a Label control. When the submit button is triggered, submit subroutine will be executed. submit subroutine writes a line of text to the Label control: