title: Limit the number of characters of a textbox
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1334286/specifying-maxlength-for-multiline-textbox">Specifying maxlength for multiline textbox</a><br>
    <a href="https://stackoverflow.com/questions/9797726/how-to-set-maxlength-for-multiline-textbox">How to set maxlength for multiline TextBox?</a>  </p>
  </blockquote>
  
  
  
  <p>I want to limit the number of characters of a text box. </p>
  
  <p>For this i used </p>
  
  <pre><code>&lt;asp:textbox id="txtAdmissionDate" runat="server" MaxLength="5"&gt; &lt;/asp:textbox&gt;
  </code></pre>
  
  <p>It's working fine. But when i add <code>TextMode="MultiLine"</code> attribute to it, the maxlenth is not working.</p>
  
  <p>Please Help</p>