Subject: Combining Two DataTextField's for a DropDownBox
Posted By: testsubject Post Date: 1/3/2006 6:54:01 AM
Hi folks,

I know this is a really simple question but how do you combine two DataTextField's into one??

Exmaple:

Say I have a drop down box and in there the Text Value is "Joe Bloggs"), but in my data reader is pulls back two fields FirstName and SurName.

In the DataTextField property of the DropDownBox how do I set the property to use two fields??

Thanks

Reply By: planoie Reply Date: 1/3/2006 11:32:47 AM
What about writing a query that returns what you want:

SELECT FirstName+' '+SurName AS FirstSurName FROM table...

Then set the DataTextField to "FirstSurName"

-Peter

Go to topic 38205

Return to index page 405
Return to index page 404
Return to index page 403
Return to index page 402
Return to index page 401
Return to index page 400
Return to index page 399
Return to index page 398
Return to index page 397
Return to index page 396