Using the Button Control

The Button control renders a push button that you can use to submit a form to the server. For example, the page in Listing 2.14 contains a Button control. When you click the Button control, the time displayed by a Label control is updated (see Figure 2.10).

Figure 2.10. Displaying a Button control.

image

Listing 2.14. ShowButton.aspx

images

The Button control supports the following properties (this is not a complete list):

AccessKey Enables you to specify a key that navigates to the Button control.

CommandArgument Enables you ...

Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.