title: Why both onblur events of asp:textbox getting executed?
body: <p>In my website of Visual Studio 2008 (.NET 3.5), I have two textboxes in a page and there are two different <code>onblur</code> events for both. when first event is getting executed, the same time another is also getting executed. I don't get why it is. Here is code:</p>
  <pre><code>&lt;asp:TextBox runat=&quot;server&quot; ID=&quot;txtBK_CODE&quot; Width=&quot;236px&quot;
        CssClass=&quot;inp-form&quot; MaxLength=&quot;8&quot; onblur=&quot;javascript:SearchBK();&quot;&gt;&lt;/asp:TextBox&gt;
  &lt;asp:TextBox runat=&quot;server&quot; ID=&quot;txtSL_CODE&quot; Width=&quot;236px&quot;
        CssClass=&quot;inp-form&quot; MaxLength=&quot;8&quot;onblur=&quot;javascript:SearchSL();&quot;&gt;&lt;/asp:TextBox&gt;
  </code></pre>
  <p>Now this functions will call webservice functions, below code:</p>
  <pre><code> function SearchBK() {
        var textInput = document.getElementById('&lt;%=txtBK_CODE.ClientID %&gt;');
        ValidateBKSLCode.ValidateBK_CODE(textInput.value, OnSearchCompleteBK, OnErrorBK);
        loaded = true;
   }
  
   function OnErrorBK(result) {
        alert(result.get_message());
   }
  
   function OnSearchCompleteBK(result) {
        document.getElementById('&lt;%=lblBK_NAME.ClientID %&gt;').innerHTML = &quot;&quot;;
        document.getElementById('&lt;%=lblBK_NAME.ClientID %&gt;').innerHTML = result;
   }
  
   function SearchSL() {
        var textInput = document.getElementById('&lt;%=txtSL_CODE.ClientID %&gt;');
        ValidateBKSLCode.ValidateSL_CODE(textInput.value, OnSearchCompleteSL, OnErrorSL);
        loaded = true;
   }
   function OnErrorSL(result) {
        alert(result.get_message());
   }
  
   function OnSearchCompleteSL(result) {
        document.getElementById('&lt;%=lblSL_CODE.ClientID %&gt;').innerHTML = &quot;&quot;;
        document.getElementById('&lt;%=lblSL_CODE.ClientID %&gt;').innerHTML = result;
   }
  </code></pre>
  <p>I took the labels but not writing it here. Also when I press tab key in first textbox, both <code>onblur</code> events are getting fired but when pressing tab in second, only second function executes. (Used Javascript tags also but not writing here.) This page is in masterpage and I added service reference in scriptmanager in masterpage. Strange thing is in another website the works fine...!
  What am I missing or some silly mistake...?</p>