Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

RegularExpressionValidator State Province?

Posted on 2010-09-09
5
Medium Priority
?
438 Views
Last Modified: 2012-05-10
Q. How can I write an expression that does not exclude a persons State or Province?
0
Comment
Question by:pointeman
5 Comments
 
LVL 9

Expert Comment

by:puru1981
ID: 33636910
i didn't get your question?

you can use required field validator to validate the field.
0
 
LVL 5

Expert Comment

by:tvPrasad
ID: 33637040

You find solution here for Regex for state abbreviations

http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_21903810.html
0
 

Author Comment

by:pointeman
ID: 33637754
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
 

Author Comment

by:pointeman
ID: 33637916
I think this simple exression is enough to reduce SQL Injection attacks: [A-Z]{2}
0
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 2000 total points
ID: 33640636
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question