Abhilash J A

Abhilash J A

  • 533
  • 2.4k
  • 598k

India postal code validation not working mvc 5

Mar 4 2017 12:26 AM
Hello all,
 
I'm working on MVC 5 project, there I have add postal validation  like this,
 
  1. [RegularExpression(@"^\d{5}(-\d{4})?$", ErrorMessage = "Please Enter Valid Postal Code.")]  
  2.        public string Pincode { getset; } 
 But the problem is, 695028 ; that is 6 digit not working.
 
Please help me...

Answers (1)