Posted By

housecor on 12/03/10


Tagged


Versions (?)

Maxlength for textbox via server side regex


 / Published in: C#
 

  1. <asp:RegularExpressionValidator ID="regexTextBox1" ControlToValidate="YourTextBoxID" runat="server" ValidationExpression="^[\s\S]{0,6000}$" Text="6000 characters max" />

Report this snippet  

You need to login to post a comment.