Author: CrazyTasty | Posted on: 8/18/2008 3:50:36 PM | Views : 486

I have a number of the same usercontrol(which consists of a checkbox and an image) that I need to load at runtime. I declare a default
control(of the same usercontrol type) in the .aspx page initially because the default always needs to be there.

By default, the default control is checked and once all the other controls are loaded, if the user clicks one or more of the loaded user controls,
the default control should uncheck, etc.....on the same note, if none of the dynamically loaded controls are checked, the default should check, etc...

I almost have this working but I can't quite get the functionality I've described above.  I suspect I have the event handlers wired up wrong or not
implemented the correct way.

The reason I feel I have to do it like this, is that if we initially declare all of the control types in the .aspx page, we have to republish each time we want to
add or remove a control...yuck! So, I have an ...

Go to the complete details ...