/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<asp:RegularExpressionValidator ID="regexTextBox1" ControlToValidate="YourTextBoxID" runat="server" ValidationExpression="^[\s\S]{0,6000}$" Text="6000 characters max" />