System.Web.UI.ControlCollection.Remove Method

Removes the specified server control from the parent server control's System.Web.UI.ControlCollection object.

Syntax

public virtual void Remove (Control value)

Parameters

value
The server control to be removed.

Remarks

To remove a control from an index location, use the ControlCollection.RemoveAt(int) method.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0