Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Accessing individual CheckBoxes in a CheckBoxList


Message #1 by "Montgomery, Aiden" <Aiden.Montgomery@f...> on Wed, 10 Oct 2001 09:07:31 +0100
I have a CheckboxList that I am adding items to using a loop.

What I am trying to do is set certain ones to have the Checkbox.Enabled value to be false.
I have a problem that the CheckboxList doesn't seem to contain Checkboxes.  I have accessed
the ListItem within the CheckboxList but this does not have an Enabled value.

I accessed the ControlCollection of the CheckboxList and cast it to be a Checkbox.  This
did not throw any errors but when I tried setting the Enabled value to false it disabled the
entire list rather than the one that I wanted.

I was wondering if anyone out there has had and solved this problem.

Aiden.

  Return to Index