title: update panel in master page within asp.net application
body: <p>I have a master page which contains an <code>Update Panel</code></p>
  
  <pre><code> &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
          &lt;Scripts&gt;
              &lt;asp:ScriptReference Name="jquery" /&gt;
              &lt;asp:ScriptReference Name="jquery.ui.combined" /&gt;
          &lt;/Scripts&gt;
  &lt;/asp:ScriptManager&gt;
                      &lt;asp:UpdatePanel ID="container" runat="server" UpdateMode="Conditional"&gt;
                          &lt;ContentTemplate&gt;
                      &lt;asp:ContentPlaceHolder runat="server" ID="Content" /&gt;
                              &lt;/ContentTemplate&gt;
                          &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>In a child view I'd like when i click into a button to redirect to another view but just updating the content of the <code>container panel</code> </p>
  
  <pre><code> protected void Login2_LoggedIn(object sender, EventArgs e)
          {
                  Response.Redirect("/Candidat/Recap.aspx");
                  UpdatePanel pan = (UpdatePanel)Master.FindControl("container");
                  pan.Update();
            }
  </code></pre>
  
  <p>But it didn't work: the whole page is refreshed . So :</p>
  
  <ul>
  <li>What is the error i commited?</li>
  <li>How can i fix my code?</li>
  </ul>