drpcken
Posts: 60
|
Posted: 08/20/2004, 12:25 PM |
|
I have a dropdownlist control named TeamLeader, and I filled it by creating a datasource to a sql table. Now I see two properties for the control, a Bound Column and a Text Column. I'm assuming the Text column is what will be displayed when the dropdown list is pulled down, and the Bound column is the value of the selected item correct? If so, how do I tell my code to get the Bound Column and/or the Text Column? I'm guessing something like TeamLeader.Bound or TeamLeader.Text
Thanks! Trying to clear this up.
|
|
|
rogersw
Posts: 16
|
Posted: 10/06/2004, 3:18 PM |
|
A quote from the MSDN site
DataTextField Gets or sets the field from the DataSource to bind to the ListItem.Text property of each item in the HtmlSelect control.
DataValueField Gets or sets the field from the DataSource to bind to the ListItem.Value property of each item in the HtmlSelect control.
|
|
|
|