Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Only one DataTextField?

Status
Not open for further replies.

eramgarden

Programmer
Aug 27, 2003
279
US
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??
 
found my answer..either what I did or use New ListItem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top