Button 1.0

Create a push button on the Web page
This ASP.NET Component will allow you to create a push button on the Web page. You can create either a Submit button or a Command button. By default, a Button control is a Submit button. A Submit button does not have a command name (specified by the CommandName property) associated with the button and simply posts the Web page back to the server. You can provide an event handler for the Click event to programmatically control the actions performed when the Submit button is clicked.

A Command button has a command name associated with the button, such as Sort, by setting the CommandName property. This allows you to create multiple Button controls on a Web page and programmatically determine which Button control is clicked. You can also use the CommandArgument property with a command button to provide additional information about the command to perform, such as Ascending. You can provide an event handler for the Command event to programmatically control the actions performed when the Command button is clicked.

By default, page validation is performed when a Button control is clicked. Page validation determines whether the input controls associated with a validation control on the page all pass the validation rules specified by the validation control. To prevent page validation from occurring, set the CausesValidation property to false. The text displayed on a Button component instance can be changed by setting the instance's label property. You can use Style property to change style of Your button.

last updated on:
October 3rd, 2009, 7:48 GMT
file size:
13 KB
developed by:
license type:
operating system(s):
Windows All
C: \ Programming \ Components & Libraries


In a hurry? Add it to your Download Basket!

user rating



Rate it!
1 Screenshot
Button - Preview window

Add your review!