CheckboxList Web Control - Bug.

M

Mythran

BUG:

Place 2 CheckboxList controls on a web form. Give them some checkboxes
(listitems) at design time (not runtime) and then run the application.
CheckboxList gives each checkbox an id # coinciding with the index in the
collection for the parent list. Therefore, item #0 has an id of "0", item #1 has
"1" et cetera.

Now, when you have two on the same form, for items up to the lowest max, you will
have duplicate id's which causes problems when trying to click on a label for one
(checkbox's have LABEL elements which are declared as <LABEL FOR="0"> so two "0"
id's will make it default the label for the last one in the code).

So, bug right?

Mythran - I am a developer therefore I am a bug. (me)
 

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,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top