boatdrinks
IS-IT--Management
I have a custom validator and would like to set it to allow between 1 and 500 characters. I would also like to allow certain characters like .,'!@$%*&()+=- I really only want to exclude <>. Is there any way I can do this?
<asp:RegularExpressionValidator id="problemvalidator2" ControlToValidate="insertproblem" display="dynamic" ErrorMessage="  Problem Description cannot exceed 500 characters" ValidationExpression=".{1,500}" runat="server" />
<asp:RegularExpressionValidator id="problemvalidator2" ControlToValidate="insertproblem" display="dynamic" ErrorMessage="  Problem Description cannot exceed 500 characters" ValidationExpression=".{1,500}" runat="server" />