One time processings of usercontrol when it is wrapped inside updatepanel
<p>Traditional way of initializing controls with the values from session state as below -</p>

<pre><code>if (!IsPostBack)
        {
            if (Session["sessionId"] != null)
            {
                //initialize controls
            }
        }
</code></pre>

<p>Exhibits unexpected behavior when <strong>user control is wrapped inside update panel</strong>.</p>

<p>I need to populate usercontrol textBox values first time from session state. And subsequent loading of these controls values should be populated from viewState.</p>

<p>How do you handle this scenario. Do you think <strong>Page.IsAsync</strong> will be helpful for this ?</p>
