I need to check the text box input length.
The max length property does not work for multi-line text fields.
My regular expression is:
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="The notes has exceeded maximum length." ControlToValidate="txtNotes" Display="Dynamic" ValidationExpression=".{0,500}" ValidationGroup="PO"> *</asp:RegularExpressionValidator>
The problem that I encountered is when a new line is entered in the text box that checks the validity of the problem.
What do I need to add to ValidationExpression to ignore carriage returns?
thank
gazamatazzer Aug 17 '11 at 15:02 2011-08-17 15:02
source share