Hmm. Let me ask you this:
When you request the value from the form does the string look like this:
NY,MS
or does it look like this:
NY, MS
In the case of the latter, what would be happening is that your string is going to split into your array ALMOST as you expect.
ArrayElement[0] == "NY"
ArrayElement[1] == " MS" '<--Notice you have leading whitespace
So, in this case that is why the Case for MS (or any subsequet States) fails because "MS" <> " MS" hence it is not a correct case.
Use the Trim() Function to remove your Leading and trailing whitespace.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========