How to set limit of max length to TextBox?
<p>I have set limit maxlength="9" for TextBox, code is below:</p>

<pre><code>&lt;asp:TextBox  ID="txtEIN" runat="server" CssClass="search-box" maxlength="9" type="number"  pattern="[0-9]*"  placeholder="EIN without dash"&gt;&lt;/asp:TextBox&gt;
</code></pre>

<p>But the problem is we can enter more than 9 number, but I need to set max limit to 9.</p>