title: Refreshing an asp.net page from a control in another control
body: <p>I want to refresh my asp.net page after someone clicks an "Add" button. However, the "Add" button is part of user control inside another user control and the child control and parent control are both wrapped in Update Panels: Code below is cut short for display, there's a reason the user control is inside another user control</p>
  
  <p>Inside first control:</p>
  
  <pre><code>&lt;ajax:UpdatePanel ID="Panel1" runat="server" UpdateMode="Always"&gt;
     &lt;ContentTemplate&gt;
               &lt;uc:Control2 ID="Custom2" runat="server" /&gt;
     &lt;/ContentTemplate&gt;
  &lt;/ajax:UpdatePanel&gt;
  </code></pre>
  
  <p>Then inside control2 </p>
  
  <pre><code>&lt;ajax:UpdatePanel ID="Panel2" runat="server" UpdateMode="Always"&gt;
     &lt;ContentTemplate&gt;
               &lt;asp:LinkButton ID="AddButton" runat="server" OnClick="AddButton_Click"&lt;/asp:LinkButton&gt;
     &lt;/ContentTemplate&gt;
  &lt;/ajax:UpdatePanel&gt;
  </code></pre>