October 2010
Intermediate to advanced
1920 pages
73h 55m
English
All three Button controls support an OnClientClick property. You can use this property to execute any client-side code that you need when a button is clicked. The page in Listing 2.18 illustrates how you can use the OnClientClick property to display a confirmation dialog box (see Figure 2.14).
Figure 2.14. Displaying a client-side confirmation dialog box.

Listing 2.18. ButtonOnClientClick.aspx

In Listing 2.18, the Button control includes an OnClientClick property, which executes a JavaScript script when ...