title: Button click not working inside update panel
body: <p>When I use Button inside Update panel it doesnot fire click event but outside the update panel it works.
  <br/>
  here is the code </p>
  
  <pre><code>&lt;asp:UpdatePanel ID="updatePanel2" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false"&gt;
      &lt;ContentTemplate&gt;
      &lt;asp:Button ID="btnBlock" class="Button" Text="BlockCalls" runat="server"       
              onclick="btnBlock_Click" Enabled="True" Width="100px" /&gt;  
      &lt;/ContentTemplate&gt;
      &lt;Triggers&gt;
          &lt;asp:AsyncPostBackTrigger ControlID="btnBlock" /&gt; 
      &lt;/Triggers&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>code for button is</p>
  
  <pre><code>protected void btnBlock_Click(object sender, EventArgs e)
  {        
      CtiWS.CtiWS CtiWS1 = new CtiWS.CtiWS();
      Response.Write("&lt;script&gt;alert('"+Convert.ToString(Session["BlockCalls"])+"')&lt;/script&gt;");
      if (btnBlock.Text == "BlockCalls")
      {
          btnBlock.Text = "UnBlockCalls";
          CtiWS1.BlockCalls("", "", HttpContext.Current.Session["HOSTID"].ToString()); //server block calls
      }
      else
      {
          btnBlock.Text = "BlockCalls";
          CtiWS1.BlockCalls("", "", HttpContext.Current.Session["HOSTID"].ToString()); //server unblock calls 
      }
  
  }
  </code></pre>