title: Trigger button click when focused textbox and click enter button
body: <p>I have 2 textboxes and 2 buttons. These buttons and textboxes linked each other <em>(first textbox-first button/second textbox-second button)</em> . If user write something in textbox1 and press enter, enter will be activate button1. If user focused textbox2 and press enter, enter will be activate button2. I tried something but it doesn't work.</p>
  
  <pre><code>document.getElementById('&lt;%=txtYonSif.ClientID%&gt;').addEventListener("keyup", function (evente) {
          evente.preventDefault();
          if (event.keyCode === 13) {
              document.getElementById('&lt;%=btnPanelYonetici.ClientID%&gt;').click();
          }
      });
      document.getElementById('&lt;%=txtKulSif.ClientID%&gt;').addEventListener("keyup", function (event) {
          event.preventDefault();
          if (event.keyCode === 13) {
              document.getElementById('&lt;%=btnPanelKullanici.ClientID%&gt;').click();
          }
      });
  </code></pre>