title: Asp.net mvc dataannotation MaxLength validation does not work
body: <p>I am using asp.net mvc4 in my model i am using Maxlength attribute but it does not work for string.
  Only Stringlength works anyone have same problem ? if had issue how to resolve ? it does not work for validate my field
  Here is my code</p>
  
  <p>(not working)</p>
  
  <pre><code>[Required]
  [MaxLength(80)]
  [DisplayName("Contact Name:")]
  public string ContactName { get; set; }
  </code></pre>
  
  <p>(working)</p>
  
  <pre><code>[Required]
  [StringLength(80)]
  [DisplayName("Contact Name:")]
  public string ContactName { get; set; }
  </code></pre>