title: Losing the viewstate
body: <p>I'm storing a few of my properties in the viewstate, so I can use them easily on Ajax requests. My property code looks like this:</p>
  
  <pre><code>public Language Language
  {
      get { return (Language)ViewState["controls_window_Language"]; }
      set { ViewState["controls_window_Language"] = value; }
  }
  </code></pre>
  
  <p>However, my customers have reported some errors, and when I've tracked it down, it's because Language is null. It doesn't happen every time; it appears to be totally random, and I can't reproduce the error. I'm also storing other properties inside the viewstate, and I'm using that property just before Language, so I havn't lost all viewstate. </p>
  
  <p>Most logical reason would be that Language is overwritten, but the only time I write to it is when the page is first loaded.</p>
  
  <p>What can be the reason for losing my viewstate property?</p>