title: viewstate with master and content page
body: <p>I want to disable viewstate for my entire site, but on some pages I want to enable it.</p>
  
  <p>in my masterpage "main.master" I have EnableViewState="false"
  in my contentpage, which has main.master as its masterpage I have EnableViewState="true"</p>
  
  <p>This doesnt seem to work, the viewstate remains disabled.</p>
  
  <p>So I tried some other combinations:</p>
  
  <p>master: enable
  content: disable
  -> results in enabled viewstate</p>
  
  <p>master: enable
  content: disable via code-behind (Me.Master.EnableViewState = False)
  -> results in enabled viewstate</p>
  
  <p>It seems as if the masterpage is always overruling the contentpage, no matter what I do.</p>
  
  <p>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: <a href="http://codeasp.net/blogs/vivek_iit/microsoft.net/26/masterpage-and-viewstate-issue" rel="nofollow">http://codeasp.net/blogs/vivek_iit/microsoft.net/26/masterpage-and-viewstate-issue</a>)</p>