PDA

Click to See Complete Forum and Search --> : dropdownlist value****resolved******


Halon
Nov 18th, 2002, 06:14 PM
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

Halon
Nov 18th, 2002, 06:21 PM
Each time i step through, no matter which dropdown item i click on the selectedindex still equals zero

Halon
Nov 18th, 2002, 06:24 PM
should've read further down the page, question posted just before this
Problem was i was binding even on postback