Solved

RegularExpressionValidator State Province?

Posted on 2010-09-09
5
422 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 500 total points
ID: 33640636
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now