I want to disable viewstate for my entire site, but on some pages I want to enable it.
in my masterpage "main.master" I have EnableViewState="false" in my contentpage, which has main.master as its masterpage I have EnableViewState="true"
This doesnt seem to work, the viewstate remains disabled.
So I tried some other combinations:
master: enable content: disable -> results in enabled viewstate
master: enable content: disable via code-behind (Me.Master.EnableViewState = False) -> results in enabled viewstate
It seems as if the masterpage is always overruling the contentpage, no matter what I do.
How can I disable the viewstate for the entire website, bu enable it for individual pages (I saw another issue here, but its also unsolved: http://codeasp.net/blogs/vivek_iit/microsoft.net/26/masterpage-and-viewstate-issue)