title: How to change the default "The field must be a number"
body: <p>I'm working on an MVC 3 application. One of the fields in the model is of type double and defined as follows:</p>
  
  <pre><code>    [Required(ErrorMessageResourceName = "ListingItemPriceRequired", ErrorMessageResourceType = typeof(ErrorMessages))]
      [Display(Name = "DisplayListingItemPrice", ResourceType = typeof(Display))]
      [Range(1, 500000000, ErrorMessageResourceName = "ListingItemPriceNotWithinRange", ErrorMessageResourceType = typeof(ErrorMessages))]
      public double Price { get; set; }
  </code></pre>
  
  <p>Still, when I enter a value of a number with some trailing spaces like "342   ", I get the default message "The field price must be a number".</p>
  
  <p>Even the validation attribute on the Price input field has something as "data-val-number".</p>
  
  <p>Thanks</p>