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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. retreiving data in dropbox

retreiving data in dropbox

Scheduled Pinned Locked Moved ASP.NET
csharptutorialannouncement
5 Posts 2 Posters 1 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.
  • K Offline
    K Offline
    Kunal P
    wrote on last edited by
    #1

    hi i am devloping a c# web based appl. i wanted to ask as to how to retreieve data to drop down boxes. i wanted to update details of employees.. for eg. their state of residence. though the addition was done by way of drop down box. but now how shud i retrieve the field so that the drop down box shows the state of the employee. to retrieve to textfields i m using this fname.Text = "" + dread["FirstName"].ToString();

    Kunal Piyush

    N 1 Reply Last reply
    0
    • K Kunal P

      hi i am devloping a c# web based appl. i wanted to ask as to how to retreieve data to drop down boxes. i wanted to update details of employees.. for eg. their state of residence. though the addition was done by way of drop down box. but now how shud i retrieve the field so that the drop down box shows the state of the employee. to retrieve to textfields i m using this fname.Text = "" + dread["FirstName"].ToString();

      Kunal Piyush

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      fname.Text = dropdownlist.SelectedValue Not difficult if you read the documentation


      only two letters away from being an asset

      K 1 Reply Last reply
      0
      • N Not Active

        fname.Text = dropdownlist.SelectedValue Not difficult if you read the documentation


        only two letters away from being an asset

        K Offline
        K Offline
        Kunal P
        wrote on last edited by
        #3

        i guess this piece of code wud assign the text box the value of the selecte item in the drop down box.. my problem was a bit different, i wanted the value from the database to be reflected in the drop down box.. sorry if i was not able to clarify myself..

        Kunal

        N 1 Reply Last reply
        0
        • K Kunal P

          i guess this piece of code wud assign the text box the value of the selecte item in the drop down box.. my problem was a bit different, i wanted the value from the database to be reflected in the drop down box.. sorry if i was not able to clarify myself..

          Kunal

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          http://msdn2.microsoft.com/en-us/library/31723w77(vs.80).aspx[^] Again, not very difficult to find if you look for the information


          only two letters away from being an asset

          K 1 Reply Last reply
          0
          • N Not Active

            http://msdn2.microsoft.com/en-us/library/31723w77(vs.80).aspx[^] Again, not very difficult to find if you look for the information


            only two letters away from being an asset

            K Offline
            K Offline
            Kunal P
            wrote on last edited by
            #5

            Mark Nischalke wrote:

            http://msdn2.microsoft.com/en-us/library/31723w77(vs.80).aspx\[^\] Again, not very difficult to find if you look for the information

            i dont want to populate the drop down list. All i want is that the drop down lost box shows a value from the databse of a particular person. eg. i want to update the state of residence of an employee.. on the update page.. the drop down shud show selected state.. the user is allowed to change the state... i hope i m clear now.

            Kunal Piyush

            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