C# Code:
| protected void btnSubmit_Click(object sender, EventArgs e) { label1.Text = "You selected: "; foreach (ListItem li in checkBoxList.Items) { if (li.Selected == true) label1.Text += li.Text + " "; } } |
Solve first, then blog!
| protected void btnSubmit_Click(object sender, EventArgs e) { label1.Text = "You selected: "; foreach (ListItem li in checkBoxList.Items) { if (li.Selected == true) label1.Text += li.Text + " "; } } |
No comments:
Post a Comment