Concatenation in DropDownList
Expanding on this great textbook, I'm wanting to concatenate two data fields into a dropdownlist box.
In ASP Classic, I would just take the two fields (e.g, rst(0) and rst(1)) and concatenate them with an "&". For example, "LastName, FirstName" would be like this: rst(0) & ", " & rst(1) with a hidden Id number to requery the database.
Can this be done in an <asp:DropDownList DataTextField="LName"> ? Or, does this have to be done in CodeBehind? I'm looking for something like:
<asp:... DataTextField = "LName & FName">
Thanks.
Patrick W
Texas
|