C
Chris Fulstow
Hi all,
I've got a simple data-bound DropDownList control:
<asp
ropDownList ID="DropDownList1" runat="server"
DataSourceID="ObjectDataSource1" DataTextField="EmployeeName"
DataValueField="EmployeeID">
</asp
ropDownList>
I want to DataTextField to include the DataValueField, so my drop-down
list options look like "[EmployeeID] - [EmployeeName]", e.g.
123 - John Smith
456 - Jane Davis
etc.
Is there a way to do this without having to change my data source?
Cheers,
Chris
I've got a simple data-bound DropDownList control:
<asp

DataSourceID="ObjectDataSource1" DataTextField="EmployeeName"
DataValueField="EmployeeID">
</asp

I want to DataTextField to include the DataValueField, so my drop-down
list options look like "[EmployeeID] - [EmployeeName]", e.g.
123 - John Smith
456 - Jane Davis
etc.
Is there a way to do this without having to change my data source?
Cheers,
Chris