Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 444
  • Last Modified:

RegularExpressionValidator State Province?

Q. How can I write an expression that does not exclude a persons State or Province?
0
pointeman
Asked:
pointeman
1 Solution
 
puru1981Commented:
i didn't get your question?

you can use required field validator to validate the field.
0
 
tvPrasadCommented:

You find solution here for Regex for state abbreviations

http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_21903810.html
0
 
pointemanAuthor Commented:
Could be I'm concerned about nothing. I found this list of state/province abbreviations all having 2 letters.
http://www.rootsweb.ancestry.com/~obituary/abbrev1.html
 
0
 
pointemanAuthor Commented:
I think this simple exression is enough to reduce SQL Injection attacks: [A-Z]{2}
0
 
käµfm³d 👽Commented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now