ASP.NET CheckBoxList Control

1.How to add CheckBoxList control to ASP.NET page

  1. Drag and Drop CheckBox control from toolbox
  2. If you want that after checked change page to postback then
     a. Set AutoPostBack property to True.
  3. Open SmartTag as to insert value in the checkboxlist as...
       a. Click on the right arrow (>) of the CheckBoxList Control.
       b. Click on EditItem .
       c. Insert value then click Ok.
  4. Now in CheckBoxList Items has been inserted...

2.You can Bind Data in CheckBoxList From your existing database also
3. You can Bind Data at Runtime also.
4. Bind Data by creating collection also.

2.  Important properties of CheckBoxList control
AutoPostBack:     A Boolean value that specifies whether the form should be posted
 immediately after the Checked property has changed or not. Default is false

Checked: A Boolean value that specifies whether the check box is checked or not.

id:A unique id for the control

OnCheckedChanged: The name of the function to be executed when the Checked property has changed

runat:Specifies that the control is a server control.  Must be set to "server"

Text: The text next to the check box

TextAlign:On which side of the check box the text should appear (right or left)