CheckboxList Web Control - Bug.

  • Thread starter Thread starter Mythran
  • Start date Start date
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)
 
Back
Top