T
tshad
I have the following code:
UserList.DataSource=theDataSet
UserList.DataTextField= "FirstName" & " " & "LastName"
UserList.DataValueField="UserID"
UserList.databind()
This, of course, doesn't work as you can't use 2 fields from the dataset.
I already have the Sql Combining the Names to FullName and the line now
looks like:
UserList.DataTextField= "FullName"
My question is - is there a way to Databind the text field with multiple
fields?
There are other cases where I want to combine dates and fields that I am
doing in SQL before databinding, but I was curious if there was a way to do
it programmatically (not using a loop, but using databind).
Not a big deal, just curious.
Thanks,
Tom
UserList.DataSource=theDataSet
UserList.DataTextField= "FirstName" & " " & "LastName"
UserList.DataValueField="UserID"
UserList.databind()
This, of course, doesn't work as you can't use 2 fields from the dataset.
I already have the Sql Combining the Names to FullName and the line now
looks like:
UserList.DataTextField= "FullName"
My question is - is there a way to Databind the text field with multiple
fields?
There are other cases where I want to combine dates and fields that I am
doing in SQL before databinding, but I was curious if there was a way to do
it programmatically (not using a loop, but using databind).
Not a big deal, just curious.
Thanks,
Tom