Ask a Question related to ASP.NET General, Design and Development.
-
ctb #1
dropdownlist-concat two fields-can it be done
I am not sure how to, or even if you can do this. I have
tried several things.
I have a drop down list that is databound to a
datareader. I wish to set the DataTextField to a
concatentation of first and last name that are stored in
the database.
any idea if there is a way to do this?
Thanks
ctb Guest
-
Concat two fields in SQL
I am trying to concatenate two columns in an SQL statement but haven't been having much success: here is the portion of the SQL: ... -
Concat problem with SQL
hi all I have a problem when I try to concat 2 fields with a dot, in a query (Oracle database). here an example : <query name="myquery"... -
concat fields then search the new field
how would I concatenate several fields from a record set then search the new field for individual keywords ? something like: Dim theArray ... -
php string concat
Hello, Simple question here.... I am trying to concatenate 2 strings but it doesn't seem to work. My only experience in in C and VB 6.0. ... -
HOW CAN I CONCAT TWO LINEAR LISTS
I have two linear lists: temp1 = temp1 = I want to combine them into one list i.e result = -
ctb #2
Re: dropdownlist-concat two fields-can it be done
I will try this, especially the first option
but, one more question
I also bind the datafieldvalue to the Member_id in the
drop down list.
In my select statement can I select another field
(member_id) in addition to the concatenated fields in the
AS clause.
the database "SELECT>-----Original Message-----
>There are two approaches to this:
>
>1) Concatenate the fields in your select statement fromOnItemDataBound>(lastName + ', ' + firstName) AS fullName From tblNames
>
>2) You could concatenate the fields in the drop down'shave>event.
>
>The first way is probably the more efficient one.
>
>I hope this helps.
>
>--
>S. Justin Gengo, MCP
>Web Developer
>
>Free code library at:
>[url]www.aboutfortunate.com[/url]
>
>"Out of chaos comes order."
> Nietzche
>"ctb" <clark@speakeasyinteractive.com> wrote in message
>news:089e01c34d42$b57463f0$a001280a@phx.gbl...>> I am not sure how to, or even if you can do this. I>>> tried several things.
>> I have a drop down list that is databound to a
>> datareader. I wish to set the DataTextField to a
>> concatentation of first and last name that are stored in
>> the database.
>>
>> any idea if there is a way to do this?
>> Thanks
>
>.
>ctb Guest
-
S. Justin Gengo #3
Re: dropdownlist-concat two fields-can it be done
Yes, you can select as many fields as you want!
SELECT Member_id, (lastName + ', ' + firstName) AS fullName From tblNames
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
[url]www.aboutfortunate.com[/url]
"Out of chaos comes order."
Nietzche
"ctb" <clark@speakeasyinteractive.com> wrote in message
news:090201c34d47$c0ef7080$a001280a@phx.gbl...> I will try this, especially the first option
> but, one more question
> I also bind the datafieldvalue to the Member_id in the
> drop down list.
> In my select statement can I select another field
> (member_id) in addition to the concatenated fields in the
> AS clause.
>
>
>> the database "SELECT> >-----Original Message-----
> >There are two approaches to this:
> >
> >1) Concatenate the fields in your select statement from> OnItemDataBound> >(lastName + ', ' + firstName) AS fullName From tblNames
> >
> >2) You could concatenate the fields in the drop down's> have> >event.
> >
> >The first way is probably the more efficient one.
> >
> >I hope this helps.
> >
> >--
> >S. Justin Gengo, MCP
> >Web Developer
> >
> >Free code library at:
> >[url]www.aboutfortunate.com[/url]
> >
> >"Out of chaos comes order."
> > Nietzche
> >"ctb" <clark@speakeasyinteractive.com> wrote in message
> >news:089e01c34d42$b57463f0$a001280a@phx.gbl...> >> I am not sure how to, or even if you can do this. I> >> >> tried several things.
> >> I have a drop down list that is databound to a
> >> datareader. I wish to set the DataTextField to a
> >> concatentation of first and last name that are stored in
> >> the database.
> >>
> >> any idea if there is a way to do this?
> >> Thanks
> >
> >.
> >
S. Justin Gengo Guest



Reply With Quote

