I agree with Alsvha. Using dynamically created controls always gets messy. I almost always try to avoid doing it in my websites. Normally what is put multiple controls on the page and hide the ones I don't want showing. It all goes back to what I said originally, there might be some other way to implement your code that do not require creating dynamic user created controls.

It is not impossible though to do what you're attempting to do. It just might not be worth your time to try and sort it all out if there is another way to go about implementing your project.