Skip to content

Instantly share code, notes, and snippets.

@kmlprtsng
Created September 6, 2013 11:08
Show Gist options
  • Save kmlprtsng/6462440 to your computer and use it in GitHub Desktop.
Save kmlprtsng/6462440 to your computer and use it in GitHub Desktop.
Checkboxlist - get all selected items
chkBoxList.Items.Cast<ListItem>()
.Where(i => i.Selected)
.Select(i => int.Parse(i.Value));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment