Use the CheckBoxList's GetItemChecked or GetItemCheckState method
for (int i = 0; i < lstEmployees.Items.Count; i++)
if (clbIncludes.GetItemChecked(i))
System.Windows.MessageBox.Show((item.Content + " is checked."));
else
or if you want to only include actually checked items:
if (stEmployees.GetItemCheckState(i) == CheckState.Checked)
or listitem.selected:
foreach (ListItem listItem in lstEmployees.Items)
{
if (listItem.Selected) {
}
else {
}
}