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.
- Declare an <
asp:CheckBoxList > element on the page. For syntax, see CheckBoxList Control Syntax.
- Optionally set the RepeatDirection property to either Horizontal or Vertical ( default ).
- Optionally change the orientation of the caption by setting the TextAlign property to either Left or Right ( default ).
Adding Items in a List Control Setting Layout in a CheckBoxList Control Setting the Selection in a List Control
|