I want to disable viewstate for nearly all of my pages and I have used the element to do so in my web.config.
On a page that specifically uses viewstate, I used the EnableViewState=true. However the page fails to work and the dropdownlists that depended on viewstate are not filled in the postback.
In an effort to try to find a pattern I was able to specifically DISABLE viewstate on the page level while the web.config was set to true, but I can't seem to do the reverse where the web.config is set to false and the page is set to true.
Any ideas on something else that may be conflicting?
UPDATE: I created a new blank project to experiment with this and apparently either ASP.NET is broken or it wasn't intended to work this way. If I enableViewState=false in the web.config I can't turn it back on at the page level. However if I set it to true, I can turn it off at the page level.
UPDATE UPDATE: I got it to work in the blank project. Not exactly sure what changed that made it work suddenly tho. I now have the web.config set to false and the page set to true and the page retains viewstate over a postback. This means it is something specific to my bigger, more complex project.