Difference between DataTextField and DataValueField Properties of List Controls?
Can any one explain me the Difference between DataTextField and DataValueField Properties of List Controls?
VBGaya.
Re: Difference between DataTextField and DataValueField Properties of List Controls?
The DataTextField is the "Text" that is displayed to the user.
The DataValueField is the selection value associated with the displayed text.
Re: Difference between DataTextField and DataValueField Properties of List Controls?
I'm no expert but I did find this for you:
Quote:
Remarks
Use the DataTextField property to specify which field from the DataSource to bind to the Text property of each item in the control.
This differs from the DataValueField property, which is used to specify the field that will provide the Value of each select option. DataTextField provides the selectable options that the user interacts with, while DataValueField provides the values that are used when submitting the form data.
http://authors.aspalliance.com/aspxt...TextField.aspx
hope this helps