title: KeyPress Event of TextBox in ASP.NET
body: <p>I'm trying to get KeyPress Event for TextBox in ASP.NET, so I found this script, but it does not works for me</p>
  
  <pre><code>&lt;title&gt;&lt;/title&gt;
  
      &lt;script src="jquery.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"  lang="js"&gt;
          $(function () {
              $("#&lt;%=TextBox1.ClientID %&gt;").keypress(function () {
                  alert("Wow; Its Work!.")
              });
          });
      &lt;/script&gt; 
  
  &lt;/head&gt;
  </code></pre>