I\'m trying to loop through items of a checkbox list. If it\'s checked, I want to set a value. If not, I want to set another value. I was using the below, but it only gives
Try something like this:
foreach (ListItem listItem in clbIncludes.Items) { if (listItem.Selected) { //do some work } else { //do something else } }