title: Refresh User Control without Refreshing the Page
body: <p>I have a page and it has a button and a user control. 
  I want to refresh the user control without refreshing the page.</p>
  
  <p>I know I cannot do it otherwise so what I did is wrapped my user control inside the Update Panel.</p>
  
  <pre><code>&lt;asp:TextBox ID="txtName" runat="server"&gt;&lt;/asp:TextBox&gt;&lt;br /&gt;
  &lt;asp:Button ID="btnAdd" runat="server" Text="Add name to list" OnClick="btnAdd_Click" /&gt;&lt;br /&gt;&lt;br /&gt;
  
  &lt;asp:UpdatePanel ID="upShowNames" runat="server"&gt;
   &lt;ContentTemplate&gt;
       &lt;uc1:ShowNames ID="ucShowNames" runat="server" /&gt;
   &lt;/ContentTemplate&gt;
      &lt;Triggers&gt;
          &lt;asp:AsyncPostBackTrigger ControlID="btnAdd" /&gt;
      &lt;/Triggers&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>But I still the control won't refresh.
  I also tried calling the update panels. The <code>Update()</code> method by changing its UpdateMode to Conditional but that does not work either...</p>
  
  <p>Does anyone know how can I do it?</p>