title: Hidden field value in update panel not updating correctly
body: <p>I'm working on employee web application project, in my application i used the 2 update panels,hidden fields and buttons. actually what I'm doing is while clicking button i need to get next employee info and save it this info. and here whenever I'll click on button which in update panel2, get employee info and I'll keep this employee id into hidden field which in update panel1 and while debugging hidden field value shows correct employee id but saving time its having old value. for this I'm facing lot problem please help me. 
  Thank you</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
    &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div&gt;
      &lt;table&gt;
        &lt;tr&gt;
          &lt;td style="border-left: 1px solid #CDCDCD; border-right: 1px solid #CDCDCD; background-color: #E9E9E9"&gt;
            &lt;asp:ScriptManager ID="ScriptManager" runat="server" EnablePartialRendering="true"
              AsyncPostBackTimeout="36000" /&gt;
            &lt;div&gt;
              &lt;asp:Timer ID="Timer1" runat="server" OnTick="Timer1_Tick" Interval="60000"&gt;
              &lt;/asp:Timer&gt;
            &lt;/div&gt;
            &lt;div align="left" style="width: 715px; background: #E9E9E9;"&gt;
              &lt;div style="margin: 0px 30px 0px 45px; line-height: 140%; border-bottom: 1px solid #E0E2E0;
                padding: 10px 0px 15px 0px"&gt;
                &lt;asp:UpdatePanel ID="upNextChapter" runat="server" UpdateMode="Conditional"&gt;
                  &lt;ContentTemplate&gt;
                    &lt;table width="100%"&gt;
                      &lt;tr&gt;
                        &lt;td align="right"&gt;
                          &lt;asp:HiddenField ID="hfEmpId" runat="server" Value="0" /&gt;
                          ** Employee Info **
                        &lt;/td&gt;
                      &lt;/tr&gt;
                    &lt;/table&gt;
                  &lt;/ContentTemplate&gt;
                  &lt;Triggers&gt;
                    &lt;asp:AsyncPostBackTrigger ControlID="imgbtnNext" EventName="Click" /&gt;
                  &lt;/Triggers&gt;
                &lt;/asp:UpdatePanel&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div align="right" style="padding-right: 30px;"&gt;
              &lt;div&gt;
                &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
                  &lt;ContentTemplate&gt;
                    &lt;asp:ImageButton ID="imgbtnNext" runat="server" OnClick="imgbtnNext_Click" /&gt;
                  &lt;/ContentTemplate&gt;
                &lt;/asp:UpdatePanel&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div align="center"&gt;              
            &lt;/div&gt;
          &lt;/td&gt;
        &lt;/tr&gt;
      &lt;/table&gt;
    &lt;/div&gt;
    &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Code behind:</p>
  
  <pre><code>public partial class _Default : System.Web.UI.Page 
  {
  
    protected void Page_Load(object sender, EventArgs e)
    {
  
    }
  
    protected void imgbtnNext_Click(object sender, EventArgs e)
    {
      //Get Employee Info &amp; store it in Hidden field value=Employee Id
      //** Saving Employee Info using Hidden filed value **
    }
  
  }
  </code></pre>