title: Determine how much data is being stored in ViewState per control
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/22814/how-to-decode-viewstate">How to decode viewstate</a>  </p>
  </blockquote>
  
  
  
  <p>I've got a fairly complex page I'm working on, with lots of usercontrols, repeaters, etc.</p>
  
  <p>The <code>ViewState</code> on that page has ballooned up to over 4MB, which is causing a <code>"Maximum Request Length Exceeded"</code> error on postback.  The temporary fix would be to increase the <code>maxRequestLength</code> attribute in <code>HttpRuntime</code>, but that isn't fixing the root problem.</p>
  
  <p>Is anybody aware of how could I inspect/query the ViewState to see which controls are the biggest offenders?  What I'd like to try and avoid is spending a bunch of time optimizing a control that would only give me a couple kB in savings, while there are others on the page that could be stashing several hundred kB in ViewState</p>
  
  <p>Thanks!</p>