On 2004-11-02, Jay B. Harlow [MVP - Outlook] <Ja************@msn.com> wrote:
however I do not know how to change this in a way that I could assure that
the information stays consistent.
You can turn off the ViewState for selected controls or all controls using
the Control.EnableViewState which DropDownList inherits.
The Page directive also has EnableViewState attribute.
But the user should beware that events will go wonky if you do either
of these. If you really want a dropDownList that reacts reasonably to
client-side disabling then one's best bet is to derive a class from
DropDownList and do the work yourself. You could probably achieve this
with a few very minor overrides, but I haven't looked at it in detail.
Of course, this is all probably way beyond what the original poster was
asking. On the other hand, all this is likely to bite him pretty soon.