asp.net.ph

Skip Navigation Links

Adding CheckBoxList Controls to a Web Forms Page

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


When you use a CheckBoxList control, you add a single control to the page. Adding items to the control is a separate process that depends on whether you will display a static list in the control or a list generated dynamically at run time. For details, see Adding Items in a List Control.

To add a CheckBoxList control to a Web Forms page

  1. Declare an <asp:CheckBoxList> element on the page. For syntax, see CheckBoxList Control Syntax.
  2. Optionally set the RepeatDirection property to either Horizontal or Vertical ( default ).
  3. Optionally change the orientation of the caption by setting the TextAlign property to either Left or Right ( default ).
CheckBoxList1.aspx
Run Sample | View Source
See Also

Adding Items in a List Control   Setting Layout in a CheckBoxList Control   Setting the Selection in a List Control



© 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