asp.net.ph

Skip Navigation Links

Adding CheckBox Controls to a Web Forms Page

Controls You Can Use on Web Forms   ASP.NET Standard Controls   CheckBox and CheckBoxList Controls


You can add a check box to a Web Forms page in two ways:

  • By adding an individual CheckBox Web server control.
  • By adding a CheckBoxList control and adding individual list items to the control.

NOTE: This topic addresses how to add individual CheckBox controls to the page.

For details about the differences in these approaches, see Introduction to the CheckBox and CheckBoxList Controls.

To add an individual CheckBox control to a Web Forms page

  1. Declare an <asp:CheckBox> element on the page. For syntax, see CheckBox Control Syntax.
  2. Specify a caption by setting the Text property.
  3. Optionally, change the orientation of the caption by setting the TextAlign property.
CheckBox1.aspx
Run Sample | View Source
See Also

Getting and Setting a CheckBox Control Value Programmatically



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note