Help!!!
I want to dynamicaly create controls in ASP.NET Web form in the following
code.
protected RadioButton radio;
private void Page_Load()
{
radio = new RadioButton();
radio.Text = "new lable";
this.controls.add(radio);
}
Why I can not do it in this way. the error says the control is not added to
form.
How do I resove it. It seems this.controls not belong to the web form. Is it
strange?
Shawn