Repeater.Controls Property

Definition

Gets a ControlCollection that contains the child controls of the Repeater control.

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

Property Value

A ControlCollection that contains the child controls of the Repeater control.

Remarks

Use the Controls collection to manage the child controls of the 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.

Poznámka

To access a child control within a Repeater control, iterate through the Repeater control's Items collection to retrieve the RepeaterItem for a given index. Then call the Repeater item's inherited FindControl method to retrieve a control with a particular ID.

Applies to

Produkt Verzie
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also