Can someone explain why this happens in dynamically loaded UCs?
<p>I got this working by trial and error but would really appreciate an explanation.</p>

<p>Summary: I am dynamically loading usercontrols from the host page.</p>

<p>Host Page .aspx</p>

<p>OnInit does a LoadControl and loads the control</p>

<pre><code>User control .ascx

On Page_Load
-&gt; First time load
    --&gt; I set a value to a hidden input type variable
    --&gt; I set a value to a ViewState object (using ViewState["test"] = "test")
-&gt; Subsequent post backs
    --&gt; Hidden var still persists
    --&gt; ViewState is NULL !! (Why?)

If i move the code from Page_Load to Oninit:
-&gt; Subsequent post backs
   --&gt; Both hidden var and Viewstate is NULL!
</code></pre>

<p>Why??</p>
