Solved

RegularExpressionValidator State Province?

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help on C# Linq query on object 6 62
Vb.net dynamic formulas in runtime 11 74
What is "public object" in C#? 3 45
Add different cell to otherwise similiar row 4 37
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

816 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

10 Experts available now in Live!

Get 1:1 Help Now