I have a dropdownlist that I populate from my database when the page loads.
If I don't have autopostback enabled, I don't see the user's changed
selection, but if I enable autopostback and do not reload the dataitems,
nothing is there, and if I enable retrieving values from the database, the
selection isn't saved. I've tried enableviewstate and autopostback - what's
the best way to do this?
Patrick.O.Ige - 19 Oct 2005 13:12 GMT
Wrap your DropDownlist in:-
If not Page.IsPostback then
(Your DropDown)
End If
Patrick
> I have a dropdownlist that I populate from my database when the page loads.
> If I don't have autopostback enabled, I don't see the user's changed
> selection, but if I enable autopostback and do not reload the dataitems,
> nothing is there, and if I enable retrieving values from the database, the
> selection isn't saved. I've tried enableviewstate and autopostback - what's
> the best way to do this?