|
-
Dec 13th, 2004, 09:44 AM
#1
Thread Starter
Fanatic Member
ddSegID.DataTextField = "SEG_NM"
Im binding my dropdown list textfield to a a row from my datasource, what i dont know how to do is add a string which contains another field and a "-".
I tried
ddSegID.DataTextField = ("SEG_ID" + " - " + "SEG_NM")
but it doenst work
-
Dec 14th, 2004, 12:34 PM
#2
Addicted Member
Re: ddSegID.DataTextField = "SEG_NM"
in your SQL statement you could do:
Select SEG_ID + ' - ' + SEG_NM as ConcatField From .......
Then
ddSegID.DataTextField = ("ConcatField")
-
Dec 15th, 2004, 03:18 AM
#3
Thread Starter
Fanatic Member
Re: ddSegID.DataTextField = "SEG_NM"
 Originally Posted by rdove
in your SQL statement you could do:
Select SEG_ID + ' - ' + SEG_NM as ConcatField From .......
Then
ddSegID.DataTextField = ("ConcatField")
Thanks RDove someone already suggested this and i amended my stored procedure.
Cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|