title: How do I limit the length of characters in a textbox in MVC?
body: <p>I would like to limit a textbox to 10 characters in MVC.  </p>
  
  <pre><code>&lt;label ID="lbl2" runat="server" Width="20px"&gt;&lt;/label&gt;
  &lt;%=Html.TextBox("polNum") %&gt;    
  &lt;label ID="lbl1" runat="server" Width="10px"&gt;&lt;/label&gt;
  </code></pre>
  
  <p>I know you can set the Max Length property in .net.  How do I do that in MVC with a textbox generated this way?</p>