title: Turn on viewstate for a single page
body: <p>I have a website created using VS2017 - it's based on Asp.Net 4.7.</p>
  
  <p>All of my pages inherit from the main master page - it includes all the header stuff which I don't want to repeat over.</p>
  
  <p>Most of my pages don't need viewstate but one page in particular does.</p>
  
  <p>Ideally I'd like to enable viewstate as the exception, but I'm finding it pretty difficult to achieve.</p>
  
  <p>Firstly, I disabled viewstate in web.config.</p>
  
  <p>I then tried to re-enable viewstate for the page in both the web.config (using location) and on the aspx page itself. Both unsuccessful.</p>
  
  <p>I've read a few articles that imply this behaviour could be down to the use of a master page, which seems to be confirms with the tests I've perfeormed.</p>
  
  <p>If that is the case, It leaves my with two rather cumbersome options:</p>
  
  <ol>
  <li>disable viewstate on each page;</li>
  <li>remove the reliance on the master page and 'duplicate everything
  within the page that requires viewstate.</li>
  </ol>
  
  <p><strong>However, I may have missed something, or misunderstood what I've already read.</strong></p>
  
  <p>So, before going down either of these routes, I'd appreciate it if anyone could advise as to whether there are any other solutions to this problem.</p>
  
  <p>Thanks in advance.</p>