Solved

RegularExpressionValidator State Province?

Posted on 2010-09-09
5
421 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 74

Accepted Solution

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

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

11 Experts available now in Live!

Get 1:1 Help Now