J
jeffmagill
I have an asp:dropdownlist in a form that is loaded with records from a
database. Upon clicking a button, a subroutine SubmitHandler is called.
The problem is that no matter which entry in the dropdownlist is
selected when the form is submitted, the value that I am recieving in
the subroutine SubmitHandler is always the first item in the
dropdownlist.
I vaguely remember someone mentioning something about
dropdownlist.selectedvalue not working properly when its contents are
sorted. Upon hearing this, I realized that this problem occurs when I
include an "ORDER BY" clause in my SQL statement - after removing the
"ORDER BY" clause everything works fine again. Unfortunately I need to
keep them ordered. I dont know. Im stumped.
Does anyone know what is wrong? Thanks in advance.
Jeff
database. Upon clicking a button, a subroutine SubmitHandler is called.
The problem is that no matter which entry in the dropdownlist is
selected when the form is submitted, the value that I am recieving in
the subroutine SubmitHandler is always the first item in the
dropdownlist.
I vaguely remember someone mentioning something about
dropdownlist.selectedvalue not working properly when its contents are
sorted. Upon hearing this, I realized that this problem occurs when I
include an "ORDER BY" clause in my SQL statement - after removing the
"ORDER BY" clause everything works fine again. Unfortunately I need to
keep them ordered. I dont know. Im stumped.
Does anyone know what is wrong? Thanks in advance.
Jeff