Export (0) Print
Expand All

Repeater.EnsureDataBound Method

Verifies that the Repeater control requires data binding and that a valid data source control is specified before calling the DataBind method.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

protected void EnsureDataBound ()
protected void EnsureDataBound ()
protected function EnsureDataBound ()
Not applicable.

When you specify a value for the DataSourceID property, ASP.NET automatically binds the Repeater control to the specified data source control. When ASP.NET performs data binding for the Repeater control, it first calls the EnsureDataBound method to verify that the control has not already been data bound and that a valid data source control that implements the IDataSource interface is specified for its DataSourceID property. The EnsureDataBound method then calls the DataBind method.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft