Mar 27, 2008 05:21 AM|d00mo|LINK
I have a custom control containing some checkboxes. To each checkbox I have added an eventhandler for CheckChanged. The controls are added to an updatepanel. Everything is created dynamically.
My problem is that the events are not generated as they should. Let's say I check three of the boxes. After the first check I get one checked event. But after the second check I get one checked event for the first box again and then one for the second box.
After checking the third box I get all three checked events, not only the last one, which I should. If unchecking a box, I dont get any unchecked event for that box, but instead checked events for all the other boxes that are checked.
I have enabled viewstate for the controls, but it seems as the viewstate variables are lost anyway.