Hi,
I've got a drop down list getting its values from a column in a dataset e.g Name.
code:
<asp
ropDownList id="ddlNames" runat="server" DataField="Id" Rows="1" DataTextField="Name" DataValueField="Price">
I need to change the Data Text field to display both Name and age.
So the drop down list may display
John
Paul
Andy
Is there a way to bind only the text value to Name and age also from the same dataset so it displays say
John 16
Paul 12
Andy 5
but the value remains the same as before?
I've got a drop down list getting its values from a column in a dataset e.g Name.
code:
<asp
I need to change the Data Text field to display both Name and age.
So the drop down list may display
John
Paul
Andy
Is there a way to bind only the text value to Name and age also from the same dataset so it displays say
John 16
Paul 12
Andy 5
but the value remains the same as before?