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. ASP.NET
  4. dropdownlist in ASP.net page

dropdownlist in ASP.net page

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasequestion
4 Posts 3 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.
  • T Offline
    T Offline
    tthellebuyck
    wrote on last edited by
    #1

    I have a dropdown list that populates a list of users from one table in my database using a stored proc. I want to be able to pull that users information from another table(address, email, etc) and display that information on my page. how could i go about doing this?

    A E 2 Replies Last reply
    0
    • T tthellebuyck

      I have a dropdown list that populates a list of users from one table in my database using a stored proc. I want to be able to pull that users information from another table(address, email, etc) and display that information on my page. how could i go about doing this?

      A Offline
      A Offline
      albCode
      wrote on last edited by
      #2

      example of query how should be select users.*,usersinfo.* from users,usersinfo where users.iduser = usersinfo.iduser this code you execute in SelectedIndexChanged event of DropDownList and then you populate this data in GridView. for more help give more info

      "My advice to you is to get married. If you find a good wife, you will be happy; if not, you will become a philosopher." Socrates

      T 1 Reply Last reply
      0
      • T tthellebuyck

        I have a dropdown list that populates a list of users from one table in my database using a stored proc. I want to be able to pull that users information from another table(address, email, etc) and display that information on my page. how could i go about doing this?

        E Offline
        E Offline
        ednrgc
        wrote on last edited by
        #3

        If you dont want to place a button for the selection, just check the selectedindexchanged event. You can also set it to autopostback.

        1 Reply Last reply
        0
        • A albCode

          example of query how should be select users.*,usersinfo.* from users,usersinfo where users.iduser = usersinfo.iduser this code you execute in SelectedIndexChanged event of DropDownList and then you populate this data in GridView. for more help give more info

          "My advice to you is to get married. If you find a good wife, you will be happy; if not, you will become a philosopher." Socrates

          T Offline
          T Offline
          tthellebuyck
          wrote on last edited by
          #4

          Alright I get that but say i wanted to populate one user's information from my table on to my web pageafter the selectedIndexChanged event, and I also want to be able to update, edit and delete that info, but I don't want to use a datagridview. How can I do this?

          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