title: How to Range validation integer ASP.NET MVC 3
body: <p>I'm using validations as below. </p>
  
  <pre><code>[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; }
  </code></pre>
  
  <p>It is always failing the validations saying <code>The value '9999999998' is invalid.</code>. Am I doing something wrong?</p>