I have a Placeholder
and I have a dynamically created panel
in the placeholder
, I also have some dynamically added radio buttons in the panel, now I can usefindControl()
to find the radio buttons if they are direct children of the placeholder
.
I've literally spent the whole of yesterday trying to find them when they are the child elements of the Panel
. How is there a way to do this?
Here's my code below:
PlaceHolder1.Controls.Add(myPanel); //add the panel to the placeholderenter code here
myPanel.Controls.Add(myRadioButton); //add the radiobutton to the panel