ControlCollection.Remove Method
.NET Framework 2.0
Removes the specified server control from the parent server control's ControlCollection object.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The following code example uses the Remove method to delete a child control from the myButton server control. First the code uses the Contains method to determine whether the myChildControl is contained in the ControlCollection object, and, if it is, removes it.
Community Additions
ADD
Show: