I know this might be something that a lot of people has been asking. Here's my problem, I found this method through online, but the problem is my count2
doesn't add on. Only count
add on. I have a horizontal checkboxlist and I have two checkbox inside, Nurse care and meal plan.
int count = 0;
int count2 = 0;
if (CheckBoxList1.Items[0].Selected)
{
count++;
}
else if (CheckBoxList1.Items[1].Selected)
{
count2++;
}
Aucun commentaire:
Enregistrer un commentaire