here in my codebehind I have created a way to add asp:Textbox dynamically
Create button action to create text field
List contr
You can remove textbox from your placeholder like below:
protected void Remove(object sender, EventArgs e)
{
foreach (Control control in PlaceHolder1.Controls)
{
//Here you need to take ID from ViewState["controlIdList"]
if (control.ID == "TakeIDFromControlListsID")
{
Controls.Remove(control);
control.Dispose();
}
}
}