Abhilash J A

Abhilash J A

  • 524
  • 2.4k
  • 600.8k

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)