asp.net RegularExpressionValidator not working in mulitline textbox -
i using regularexpressionvalidator stop user using apostrophe (symbol '). working fine in single line textbox. shows error message when user uses enter key new line. validationexpression using is:validationexpression="^(?:(?!['].))*$"
and code: errormessage="you not allowed use apostorphene" controltovalidate="tbdrivinglicenseother"
validationexpression="^(?:(?!['].))*$">
can not find solution anywhere on web. can help?
it isn't clear me, trying prevent along apostrophs current regex... following expression:
validationexpression="^[^']*$" prevents input of apostrophes in both textbox , multi-line textbox.
Comments
Post a Comment