Assembly: System.Web (in System.Web.dll)
The data source cannot be resolved for one of the following reasons:
Use the property to access the ID property of the data source control that the Repeater control should use to retrieve its data source. The data source control that is referenced by the property can be any control that implements the IDataSource interface. The data source control must exist either in the same naming container as the Repeater control that references it or in a parent control of the Repeater control. When you specify a value for the property, the Repeater control binds to the specified data source control. You do not need to write code that explicitly calls the DataBind method.
Alternatively, you can use the DataSource property to specify the source of values to bind to the Repeater control. The data source must be a collection that implements the System.Collections::IEnumerable interface (such as the System.Data::DataView or System.Collections::ArrayList object) or the IListSource interface. When you set the DataSource property, you must write the code to perform the data binding.
The value of this property is stored in view state.
|How to: Add Repeater Web Server Controls to a Web Forms Page (Visual Studio)||Building ASP .NET Web Applications in Visual Studio|
The following code example demonstrates how to set the property to the ID property of a SqlDataSource control. When the page is loaded, the Repeater control binds to the data source that is specified by the SqlDataSource control and the data is displayed to the user.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.