Results 1 to 3 of 3

Thread: dropdownlist value****resolved******

  1. #1

    Thread Starter
    Addicted Member Halon's Avatar
    Join Date
    Oct 2002
    Location
    under desk choking on rage
    Posts
    228

    dropdownlist value****resolved******

    I am trying to get the text value of what a user selects from a drop-down box and no matter how many different ways i try it always returns '1'. Am i missing a step.
    1. load dropdownlist from DB
    2user clicks selection
    3.user clicks button
    4. i grab ddl.SelectedItem.Value
    the value (or .text) always is the first value in the list

    Hope this makes any sense
    Last edited by Halon; Nov 18th, 2002 at 07:23 PM.
    Soylent Green tastes like chicken

  2. #2

    Thread Starter
    Addicted Member Halon's Avatar
    Join Date
    Oct 2002
    Location
    under desk choking on rage
    Posts
    228

    more info

    Each time i step through, no matter which dropdown item i click on the selectedindex still equals zero
    Soylent Green tastes like chicken

  3. #3

    Thread Starter
    Addicted Member Halon's Avatar
    Join Date
    Oct 2002
    Location
    under desk choking on rage
    Posts
    228

    sorry guys

    should've read further down the page, question posted just before this
    Problem was i was binding even on postback
    Soylent Green tastes like chicken

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width