Only ONE DataTextField is allowed? not good...

eramgarden

Contributor
Joined
Mar 8, 2004
Messages
579
I have a RadioButtonList and I want to display firstname and lastname next to each radio button...

issue is firstname and lastname are seprate fields..

My workaround was this but wondering if there's another way of doing this ..

This is the HTML:
Code:
<asp:radiobuttonlist id="rblDisplayContacts" style="Z-INDEX: 101; LEFT: 404px; POSITION: absolute; TOP: 226px" runat="server" DataTextField="caller_firstname"  DataValueField="callerid" Width="576px"></asp:radiobuttonlist>

This is my SQL to BIND to DATTEXTFIELD:
Code:
select callerid,firstname + ' ' + lastname + ' --- '+ com.cmp_a  as 'caller_firstname' ...

Any other way of doing this??
 
Or you can simly create concatenate the 2 fields into your SP and add it as an additionnal field.

Used this to overcome this kind of prob.
 
Back
Top