Binding Data to a datalist

Posted by Vijayar under ASP.NET on 5/23/2011 | Points: 10 | Views : 1633 | Status : [Member] | Replies : 1
Hi
I have the fields as first name,last name ,address in a table,I want to concatenate first name and last name into a single field and display it in Datalist from database separated by a horizontal line .Please Help me with an example

vijaya

vijaya


Responses

Posted by: Jayeshl on: 5/23/2011 [Member] Starter | Points: 25

Up
0
Down
thanks for posting this question.


plz try this one

select Firstname + ' - ' + Lastname as Name from TableName

thanks

Vijayar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response