I know I can loop through a checkboxlist.Items and see if none of them is selected, but is there a better way to find out if no items have been selected, in the code behind?
I know I can loop through a checkboxlist.Items and see if none of them
Share
You have to check the SelectedIndex. If it equals -1, its means nothing is selected.