Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Best Way To Obtain CheckBox Data?

$
0
0

I have a form full of 48 check boxes. Dependent upon ticked or not, they all will submit true or false into a database. I only want 8 to be ticked for them to submit and I have been having trouble incrementing a variable when clicked so the button only submits when 8 are ticked (i.e the incremental variable is at 8). The variable stuck at 0 so i guess it hasn't been declared right either so I gave up .

Any suggestions as to how would be best collecting this data from them so only 8 are ticked. Cheers. 

 

Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>