Web Analytics Made Easy -
StatCounter DropDownList...Urgent!!!! - CodingForum

Announcement

Collapse
No announcement yet.

DropDownList...Urgent!!!!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DropDownList...Urgent!!!!

    hi,i'm newbie in ASP.net...can somebody help me please????!!!!!

    how to show 2 fields data from database and combine it in one dropdownlist???

    for eg. first field=FirstName
    second field=LastName

    then inside the dropdownlist,it will show @FirstName + @LastName

    thank you very much!!

  • #2
    Concatenate the values. Either in your query or in your code when you build the drop down list.

    Good luck;
    -Brando
    Why using tables for eating is stupid!

    Comment


    • #3
      but i'm using the properties name DataTextField to show the field that i want...
      unfortunately,it is just can choose either FirstName or LastName to display...

      I have just attend the training for a week....so many thing still very blur....but i need 2 solve this problem...

      thanks for helping me

      Comment


      • #4
        Right, but you can make it one field from the db if you're doing it that way. How are you running the query, and what is the query?
        -Brando
        Why using tables for eating is stupid!

        Comment


        • #5
          icic....i knew what did you mean already!!!

          i need to write some code to retrieve from database and show FirstName and LastName at the same time....

          thanks everyone

          Comment

          Working...
          X