Lynn Emery

Lynn Emery

  • NA
  • 47
  • 56.7k

Count the number of checkboxes which are checked

Apr 12 2013 4:07 AM

Hi,I want to count the number of checkboxes which are checked on my asp.net page and if the count = 10 then to change the my label1 text to "Complete".

I understand that I have to use a for loop statement e.g for (int i; i<10; i++) and and an if statement to change the label text e.g if (i=10) {label.text="Complete"}. However I am not sure how to count a selection of checkboxes. Does anyone know how this can be achieved?



 


 


Answers (1)