RadioButtonList component
Please select your fav team:
Your fav team is is:
The code used is to create a selected event on the RadioButtonList 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 do an AutoPostBack on the control, so that the updates
are reflected
[Example]
|