maxvee8
02-12-2008, 08:10 PM
hi ive got a dropdownlist populated from a sql database but how do i put two value in teh DatTextField...
atm it is staffNo but say i want StaffNo + Fname + LName to be displayed
how do i do this?
<asp:DropDownList ID="Module" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="staffNo" DataValueField="staffNo" OnSelectedIndexChanged="Module_SelectedIndexChanged">
thanks max:confused:
atm it is staffNo but say i want StaffNo + Fname + LName to be displayed
how do i do this?
<asp:DropDownList ID="Module" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="staffNo" DataValueField="staffNo" OnSelectedIndexChanged="Module_SelectedIndexChanged">
thanks max:confused: