ado.net DropDownList not persisting

  • Thread starter Thread starter Mad Scientist Jr
  • Start date Start date
M

Mad Scientist Jr

I have a dropdown list that is initiated if Not Postback. However when
a postback occurs, the dropdown's value is reset.

Is there a property I am missing, or some even that is getting fired
that might be causing this?

Thanks in advance...

If (IsPostBack) Then
'(process controls)
Else
'(init controls)
End If
 
found the problem - if you don't assign Values (but only Text) to a
dropdown it can't persist! i assigned values 0,1,2,3,4,5,etc to it and
now it works fine.
 
Back
Top