System.Web.UI.WebControls.Repeater.Controls Property

Gets a System.Web.UI.ControlCollection that contains the child controls of the System.Web.UI.WebControls.Repeater control.

Syntax

public override System.Web.UI.ControlCollection Controls { get; }

Value

a System.Web.UI.ControlCollection

Remarks

Use the Repeater.Controls collection to manage the child controls of the System.Web.UI.WebControls.Repeater control. It is commonly used to retrieve a child control from the collection. You can also add and remove child controls from the collection.

Note:

To access a child control within a System.Web.UI.WebControls.Repeater control, iterate through the System.Web.UI.WebControls.Repeater control's Repeater.Items collection to retrieve the System.Web.UI.WebControls.RepeaterItem for a given index. Then call the Repeater item's inherited System.Web.UI.Control.FindControl(string) method to retrieve a control with a particular ID.

Requirements

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