Dyamically Change DefaultButton present inside UpdatePanel
<p>How to dynamically Change DefaultButton Property of the Form from UserControl present in a page.Page is loaded into a master page contains Update Panel.</p>

<p>When Try to change the Default button in  onload event of the UserControl, It is not changing.</p>

<pre><code>if(lastpage)
{
this.Page.Form.DefaultButton = btnSave.UniqueID;
}
else
{
this.Page.Form.DefaultButton = btnNext.UniqueID;
}
</code></pre>
