check box list

A

Ankit Aneja

I am making check box list
with 4 check boxes
say All,One,Two,Three
by default all is selected i write selected ="TRUE" for All
but i want if user clicks on One
All should become Unslected
and secondly if user selects One,Two,Three than automatically on
Autopostback event All should get selected and other three unselected
 
S

Steven Cheng[MSFT]

Hi Ankit,

Thank you for posting.

As for the checkbox list question, I don't quite think use CheckBoxList
will be the best solution. the checkBoxList is a subclass of the
ListControl and it has limited customization features. Regarding on your
scenario, you'll need to do some rich customization on the checkboxes in
the list, it'll be very difficult if we use checkboxlist. IMO, you can
consider using the Repeater control to build such a list of checkboxes, and
you can register the OnChange event for all those checkboxes (use the same
event handler function). Then, in the event handler function, you can add
custom code logic to check which checkbox is clicked and determine whether
to select or unselect those checkboxes. How do you think of this?

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top