title: ASP.NET MVC Html.textbox - How to validate numbers only?
body: <p>With the HTML helper, how would you enforce number only without submitting?  I know it was done with regular expression if you had a textbox in classic ASP.NET</p>
  
  <pre><code>&lt;%= Html.TextBox("txtYearOfWork",
                   String.Empty, 
                   new { maxlength = 4, size="5", autocomplete = "off" }) %&gt;
  </code></pre>