title: Don't submit form when I press enter key in a textbox
body: <p>i have a text-box in my form. I write a <code>JavaScript</code>  function to add some functionality when user enter some value in text box and then press <code>Enter</code> button. When I press <code>Enter</code> button, first , it perform my JavaScript functionality but then it shows the validations message(it submits the form). How to solve this problem</p>
  
  <p>Here is my texbox</p>
  
  <pre><code>&lt;asp:TextBox ID="txt_CopyFrom" runat="server" onkeypress="searchKeyPress(event);" ClientIDMode="Static"&gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>And here is my JavaScript function</p>
  
  <pre><code>function searchKeyPress(e) {
          if (e.keyCode === 13) {
                  .
                  .
                  .
  
          }
          return false;
  }
  </code></pre>