That what i have written in the code,
the If condition filters the Selected items from the item list,
so you can write the code within the If condition..
foreach (ListItem item in cbl1.Items)
{
if (item.Selected)
{
}
}
What you want to do actually..?
What i sthis property(checkedListBox1.CheckedItems) that you have written in your code..?
their is no CheckedItems property in CheckBoxList.