
February 17th, 2003, 10:25 PM
|
|
Registered User
|
|
Join Date: Jan 2003
Posts: 23
Time spent in forums: 22 m 19 sec
Reputation Power: 0
|
|
|
Problem with databind and checkboxes.
Hi Everyone,<br><br>I have a problem in asp.net. My code is<br><br>dim sitelist as arraylist<br>dim objCBL as checkboxlist<br><br>sitelist = new arraylist<br>sitelist.add("One")<br>sitelist.add("Two")<br>sitelist.add("Three")<br><br>objCBL.datasource = sitelist<br>objCBL.databind<br>subcat.controls.add(objCBL)<br><br>where subcat is the id of placeholder where checkboxlist appears.<br><br>Now when I try to get how many checkboxes are checked I do not get the result, my code is<br><br>dim item,clicked<br>for each item in objCBL.items<br>if item.selected then<br>clicked = item.value<br>end if<br>next<br><br>Is there a problem in my coding, is there any other way to find how many checkboxes are checked.<br><br>Thanks<br>Uday.
|