Assembly: System.Web (in System.Web.dll)
Use 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.property to access the
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.
The following code example demonstrates how to set 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.property to the
Available since 2.0