다음과 같이 유효성 검사를 사용하고 있습니다.범위 유효성 검사 정수 ASP.NET MVC 3
[Required(ErrorMessage = "Please provide 10 digit mobile number without spaces and without country code (+91)")]
[Integer(ErrorMessage = "Please provide 10 digit mobile number without spaces and without country code (+91)")]
[Range(1000000000, 9999999999, ErrorMessage = "10 digit mobile number only without spaces and without country code (+91)")]
[Display(Name = "Mobile Number")]
public int MobileNo { get; set; }
항상 The value '9999999998' is invalid.
의 유효성 검증이 실패합니다. 내가 뭔가 잘못하고 있는거야?
모든 대답은 하나 또는 다른 방식으로 도움이되었습니다. 매우 감사합니다 :) – IsmailS