Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Dropdownlist Datatextfield

Dropdownlist Datatextfield

Scheduled Pinned Locked Moved Web Development
databasehelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mcgann
    wrote on last edited by
    #1

    I have this page with 2 dropdownlists. When the page loads. the first dropdownlist is popoulated. When you select which value you want in the first ddl the page is posted back and retrieves the values for the second dropdownlist. the second ddl uses a stored_proc to populate it. what i wanted to know is: 1. Is it possible to set the ddl.datatextfield to 2 pieces of info taken from the database say a first name and lastname? any help with this is much appreciated. Keep coding

    N 1 Reply Last reply
    0
    • M mcgann

      I have this page with 2 dropdownlists. When the page loads. the first dropdownlist is popoulated. When you select which value you want in the first ddl the page is posted back and retrieves the values for the second dropdownlist. the second ddl uses a stored_proc to populate it. what i wanted to know is: 1. Is it possible to set the ddl.datatextfield to 2 pieces of info taken from the database say a first name and lastname? any help with this is much appreciated. Keep coding

      N Offline
      N Offline
      NeverHeardOfMe
      wrote on last edited by
      #2

      no, but you can always return the two pieces of info as one - in a SQL statement you would use something like: select firstname+' '+lastname as personname from... then set your dropdownlist datatextfield = personname Hope this helps Phil

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups