On postback: How can I access ASP.NET controls in my code-behind file, which are added programmatically?
I am adding a CheckBox control to a Placeho
You should recreate your dynamic control on postback:
protected override void OnInit(EventArgs e) { string dynamicControlId = "MyControl"; TextBox textBox = new TextBox {ID = dynamicControlId}; placeHolder.Controls.Add(textBox); }