title: ASP MVC 4 client side character max validation not showing message
body: <p>I have a character limit I'm trying to place on a specific field using ASP MVC 4 client side validation. Unfortunately this field can be auto-populated by a drop down list and, since the values are maintained by our staff, occasionally a value is entered larger than 12 characters or with too much whitespace. </p>
  
  <p>The client side validation seems to catch the field just fine (highlights it in red and will not allow the form to post), but I will not display the message. We have other fields in the same form that do so, so I'm not sure what is going on. Obviously our jQuery scripts and <code>@Html.ValidationSummary(true)</code> command are set properly</p>
  
  <p><strong>Model</strong></p>
  
  <pre><code>    [MaxLength(12, ErrorMessage = "Maximum 12 characters")]
      public string DRMCompanyId { get; set; }
  </code></pre>
  
  <p><strong>View</strong></p>
  
  <pre><code>&lt;div class="M-editor-label"&gt;
      @Html.LabelFor(model =&gt; model.DRMCompanyId, new {@class="required"})
  &lt;/div&gt;
  &lt;div class="M-editor-field"&gt;
      @Html.TextBoxFor(model =&gt; model.DRMCompanyId, new { maxLength = 10 })
      @Html.ValidationMessageFor(model =&gt; model.DRMCompanyId)
  &lt;/div&gt;
  </code></pre>
  
  <p>For reference the below validation works. This field is in the same form: </p>
  
  <p><strong>Model</strong></p>
  
  <pre><code>    [DisplayName("Effective Date")]
      [Column(TypeName = "DateTime")]
      [DisplayFormat(DataFormatString = "{0:d}", ApplyFormatInEditMode = true)]
      public DateTime? EffectiveDate { get; set; }
  </code></pre>
  
  <p><strong>View</strong></p>
  
  <pre><code>&lt;div class="M-editor-field"&gt;          
      @Html.TextBoxFor(model =&gt; model.EffectiveDate, new { maxlength = 10 })
      @Html.ValidationMessageFor(model =&gt; model.EffectiveDate)
  &lt;/div&gt;
  </code></pre>