Can access a object after postback - ASP.NET
<p>I am really confused with this behavior. Can someone explain this to me?</p>

<p>I have the following class structure:</p>

<pre><code>public abstract BaseUserControl : System.Web.UI.UserControl
{
  public List&lt;string&gt; listFieldMapper = new List&lt;string&gt;();
}

  public partial class Property : BaseUserControl
  {
    protected override void OnInit(EventArgs e)
    {
      base.OnInit(e);

      base.listFieldMapper.Add("test");
    }
  }
</code></pre>

<p>In a event handler of a button, (causes Postback), I can access the <code>base.listFieldMapper</code></p>

<p>My understanding was that between postbacks, the state is not maintained, to be able to maintain the state, use the ViewState object. How is it that the list maintains the values?</p>

<p>On a side note, If I set the value of <code>base.listFieldMapper</code> after <code>OnInit</code> (Ex: Load), I have a null object after postback. </p>
