dropdownlist multiple fields in text?

Discussion in 'ASP .Net Web Controls' started by HockeyFan, Jul 28, 2006.

  1. HockeyFan

    HockeyFan Guest

    Is there a way to bind the DataTextField property of a dropdownlist to two
    fields instead of just one?
    I'd like to have Lastname, Firstname if possible. Is there a way?
    HockeyFan, Jul 28, 2006
    #1
    1. Advertising

  2. HockeyFan

    puja Guest

    hi

    u can't have 2 values for data text field
    an alternative solution would be in ur sql query , select (firstname + ' '
    + lastname) as name from customers

    and u can have "name" as datatextfield value.

    hope this helps


    "HockeyFan" <> wrote in message
    news:...
    > Is there a way to bind the DataTextField property of a dropdownlist to two
    > fields instead of just one?
    > I'd like to have Lastname, Firstname if possible. Is there a way?
    >
    puja, Jul 31, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tshad

    Multiple fields in a DropDownList

    tshad, Oct 31, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    14,914
    Patrick.O.Ige
    Nov 4, 2005
  2. Roy Adams

    Multiple Update from text fields

    Roy Adams, Jun 4, 2004, in forum: ASP General
    Replies:
    1
    Views:
    121
    Manohar Kamath [MVP]
    Jun 4, 2004
  3. JP SIngh
    Replies:
    5
    Views:
    259
    Bob Barrows [MVP]
    Jan 24, 2006
  4. Replies:
    1
    Views:
    96
    Robert La Ferla
    Jul 4, 2007
  5. Replies:
    0
    Views:
    270
Loading...

Share This Page