Author: Oneleg | Posted on: 2/19/2009 9:22:39 AM | Views : 289

 Hello,
 I'm rather new to ASP.NET and I'm trying to learn...
 What I have is a usercontrol that has a table that contains all the components of the page. One of the components is a panel. On this panel I dynamically create radiobuttons and group them together. I bind an eventhandler to each button directing the "CheckedChanged" event to the same method.
It doesn't fire at all...
During postback the dynamic components are re-created and the eventhandlers also.
This is my code for creating the radiobuttons, it is simplified since every button get's its own id and around this is a loop. But the creation of the button and the eventhandler is like this:

 RadioButton ctrl = new RadioButton();
ctrl.GroupName = "Layout";//Group all the radiobuttons to one group
pnlRadioButtonList.Control ...

Go to the complete details ...