1. I would use a databound control instead, such as a Repeater. In that
case you can do most of your stuff declaratively, and you don't have to
take control recreation into account (upon postbacks). So it's less
error prone too.
2. Upon a postback, you can check a radio button list's Selected*
property.
In case you don't want to go for 1., you have to take into account that
adding a control dynamically, means that the control is ONLY added to
the control hierachy for the CURRENT request. So upon a postback, its
NOT there anymore, and you have to RECREATE it. If you dont do this
properly, you'll have problems with events not being fired, etc.
HTH.
|