[Solved] How to delete dynamically created textbox in asp.net


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);
            }
        }
     }

0

solved How to delete dynamically created textbox in asp.net