concatenate a datatextfield???

weezy

New Member
Is it possible to show the value of two columns in the datatextfield property of a drop-down list? For example, I want my drop-down list to display the following two columns separated by a colon:<BR><BR>column1 " : " column2<BR><BR>I used this code to create the drop-down list after I ran a SQL statement to get several columns from my database:<BR><BR><asp:dropdownlist size="1" id="lstID" runat="server" DataTextField="column1" DataValueField="column_id" /><BR><asp:button text="Submit" runat="server"/>
 
Back
Top