title: ASP.NET button jQuery-BlockUI
body: <p>I'm not sure what I did wrongly the BlockUI isn't working. Hope you guys can help, Thanks.</p>
  
  <p>I am trying to make after clicked the search button, the UI will unavailable from user.</p>
  
  <pre><code> &lt;asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"&gt;
  
  
      &lt;script src="../JS/jquery-1.9.1.js" type="text/javascript"&gt;&lt;/script&gt;
  
      &lt;script src="../JS/jquery.blockUI.js" type="text/javascript"&gt;&lt;/script&gt;
  
      &lt;script type="text/javascript"&gt;
       $(document).ready(function() {
       $('&lt;%= btnSearch.ClientID %&gt;').click(function() {
           $.blockUI({ message: 'Just a momeqweqwent...'});
  
       setTimeout(function() {
           $.unblockUI({
               onUnblock: function() { alert('onUnblock'); }
           });
       }, 2000);
     });
  });
      &lt;/script&gt;
  
  &lt;asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="Rect" OnClick="btnSearch_Click"&gt;
                  &lt;/asp:Button&gt;
  </code></pre>