Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET DataTextField Property

ASP.NET DataTextField Property


ListControl Control Reference Manual ListControl control reference manual


Definition and Usage

The DataTextField property specifies the data source field to bind to the Text property of each item in the control.


Example

The following example uses an XML file to populate the data of a RadioButtonList:

<%@ Import Namespace="System.Data" %>

runat="server" onSelectedIndexChanged="displayMessage" />

Demo Example »

The XML file used in the example is countries.xml


ListControl Control Reference Manual ListControl control reference manual