Export (0) Print
Expand All

Button control

The Button control presents a standard command button, which is rendered as an HTML input element. Using a Button control on ASP.NET web pages allows users to indicate that they have completed the form or that they want to perform a specific command. Web server controls include three kinds of buttons, each of which appears differently on web pages: Button controls, LinkButton control controls, and ImageButton control controls.

When a user clicks any of the three types of buttons, a form is submitted to the server. This causes the web page to be processed and any pending events to be raised in server-based code. For details about writing code for button controls, see Button Web Server Controls Overview in the MSDN library.

To add a Button control to a page

  1. Drag the Button control from the Toolbox task pane to your page.

  2. Set properties for the control in the Tag Properties task pane.

Community Additions

ADD
Show:
© 2014 Microsoft