Skip Navigation Links.

CheckBoxList component

Please select your fav team:

   Your fav team is is:

 The code used is to create a selected event on the CheckBoxList component and then add the code:

protected void CheckBoxList1_SelectedIndexChanged(object sender, EventArgs e)
this.TextBox1.Text = "";
foreach (ListItem li in this.CheckBoxList1.Items)
if (li.Selected) this.TextBox1.Text += li.Text +" ";

It is important to Enable AutoPostBack on the control, so that the updates are reflected: