A
A.M
Hi,
How can I set the option of RegularExpressionValidator to
RegexOptions.IgnoreCase ?
Thanks,
Alan
How can I set the option of RegularExpressionValidator to
RegexOptions.IgnoreCase ?
Thanks,
Alan
Hi,
How can I set the option of RegularExpressionValidator to
RegexOptions.IgnoreCase ?
Chris R. Timmons said:Hi,
How can I set the option of RegularExpressionValidator to
RegexOptions.IgnoreCase ?
Alan,
There is no property in the RegularExpressionValidator control that
allows regex options to be set.
If your control does both client-side and server-side validation, the
regex must use a subset of regular expression syntax that both
JScript and .Net can execute. In this case, to make a regex ignore
case it is necessary to use a character class construct like [a-zA-Z]
to match both upper and lower case characters.
If your validation is done on the server-side only, you can use the
more powerful .Net regular expression syntax. In this case, you can
place the (?i) option at the beginning of the regex to tell it to
ignore case.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.