asp.net.ph

DataBoundControl.DataMember Property

System.Web.UI.WebControls Namespace   DataBoundControl Class


Sets or retrieves the specific data member in a multi-member DataSource to bind to a Repeater control.

Syntax


Inline <asp:Repeater datamember = strName ... >
Script Repeater.DataMember [ = strName ]

Property Value


strName String specifying the name of a data memebr in a multi-member DataSource.

The property is read/write with no default value.

Remarks

Use the DataMember property to specify the name of the specific data member in a DataSource, whose set of values will be used to bind to the Repeater control.

This property applies only when the DataSource contains multiple sets of data. For example, if there is more than one table in the data source, use the DataMember property to specify which table to bind to a Repeater control.

NOTE: If this property is not set, the set of values of the first data member ( for example, the first table in the DataSet ) is used by default.

See Also

DataBoundControl Members   DataSource   DataSourceID Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph