|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
How to: Add CheckBox Web Server Controls to a Web Forms Page
You can add a check box to a Web Forms page in two ways:
By adding an individualWeb server control.
By adding aWeb server control and then adding individual list items to the control.
This topic addresses how to add individual CheckBox controls to the page. For information about adding items to a CheckBoxList control, see.
To add a CheckBox Web server control to a Web Forms page
<asp:CheckBox>element to the page. For syntax, see .
Specify a caption by setting theproperty.
Optionally, change the orientation of the caption by setting theproperty.