Using the CheckBox
Control
The CheckBox
control enables you to display, well, a check box. The page in Listing 2.10 illustrates how you can use the CheckBox
control in a newsletter signup form (see Figure 2.8).
Figure 2.8. Displaying a CheckBox
control.
Listing 2.10. ShowCheckBox.aspx
In Listing 2.10, the Checked
property determines whether the user has checked the check box. Notice that the CheckBox
includes a Text
property that labels the
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.