Skip to content

Instantly share code, notes, and snippets.

@crismogram
Created November 10, 2013 19:26
Show Gist options
  • Save crismogram/7402656 to your computer and use it in GitHub Desktop.
Save crismogram/7402656 to your computer and use it in GitHub Desktop.
a loop over the collection of items.
foreach (ListItem item in CheckBoxList1.Items)
{
if (item.Selected == true)
{
Label1.Text += "In the CBL you selected " + item.Value + "<br />";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment