Click to See Complete Forum and Search --> : Selecting data in checkListBox controls


Nava
July 28th, 2006, 04:27 AM
Hi

I have some data loaded in a checklistbox in aspnet application

How do I know which data has been checked

To print the data I use the following code


for i=0 to chkProgram.Items.Count
chkProgram.Items(i).Item
next

mcmcom
July 28th, 2006, 02:23 PM
for i=0 to chkProgram.Items.Count
if chkPrigram.Items(i).Checked == true
//its checked
else
//its not
end if


my VB is rusty but you get it, they have a checked property, its true if checked, false if not.

hth,
mcm