title: Using Updatepanel in sharepoint 2013 web part
body: <p>We are facing problem related to updatepanel in sharepoint 2013. we have a sample webpart that includs a label and a button, we want to write somthing to label in click event of button without refreshing the whole page. Our sample code is as followed :</p>
  
  <pre><code>    &lt;asp:UpdatePanel runat="server" ID="UpdatePanel1"&gt;
      &lt;ContentTemplate&gt;
          &lt;asp:Label ID="lbl" runat="server" Text="Loaded" Visible="true"&gt;&lt;/asp:Label&gt;
          &lt;asp:Button ID="btn" runat="server" OnClick="btn_Click"/&gt;
      &lt;/ContentTemplate&gt;
      &lt;Triggers&gt;
          &lt;asp:AsyncPostBackTrigger ControlID="btn" EventName="Click" /&gt;
      &lt;/Triggers&gt;
      &lt;/asp:UpdatePanel&gt;    
  
      protected void btn_Click(object sender, EventArgs e)
      {
          lbl.Text = "BUTTON CLICKED !";
          lbl.Visible = true;
      }
  </code></pre>
  
  <p>We have tried the solution mentioned on this <a href="http://msdn.microsoft.com/en-us/library/bb861877.aspx" rel="nofollow">link</a> but could not achieve our goal.</p>
  
  <p>Any solution for this problem along with sample code will be highly appreciated.</p>
  
  <p>Thanks.</p>