This is a migrated thread and some comments may be shown as answers.

Remove Checkbox

1 Answer 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
New
Top achievements
Rank 1
New asked on 03 Jul 2012, 01:38 PM

How to remove dynamically created checkbox

for (int j = 1; j <= i; j++)
{
    CheckBox chk = new CheckBox();
    chk.ID = "ChkBox" + j.ToString();
    pHolder.Controls.Remove(chk);
}

It's not removed


Thanks Advance,
New Gene.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Jul 2012, 03:15 PM
Hello,

This is a general knowledge question which is not directly related to the scope of service of Telerik forums. That is why my recommendation is to search in Google or in the ASP.NET forums for examples on how to remove dynamically generated server elements, e.g. https://www.google.com/search?q=Controls.Remove

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
New
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or