title: Asp.net convert textbox input to upper case on key down with jQuery
body: <p>I want to convert the text in a textbox to uppercase as the user writes it.</p>
  
  <p>Html/aspx:</p>
  
  <pre><code>&lt;asp:TextBox runat="server" ID="mytextbox" onkeydown="toUpperCase()"&gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>jQuery</p>
  
  <pre><code>function toUpperCase() {
      $(this.val) = this.val.toUpperCase();
  }
  </code></pre>