C
Chris Fulstow
Hi all,
I've got a simple data-bound DropDownList control:
<aspropDownList ID="DropDownList1" runat="server"
DataSourceID="ObjectDataSource1" DataTextField="EmployeeName"
DataValueField="EmployeeID">
</aspropDownList>
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:
<aspropDownList ID="DropDownList1" runat="server"
DataSourceID="ObjectDataSource1" DataTextField="EmployeeName"
DataValueField="EmployeeID">
</aspropDownList>
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