title: Decimal value is not valid for price. MVC3
body: <p><strong>Product.cs</strong></p>
  
  <pre><code>...
      [Required(ErrorMessage="Price is required")]
      [Range(0.01, 100000.00,
          ErrorMessage="Price must be between 0.01 and 100000.00")]
      public decimal Price { get; set; }
  ...
  </code></pre>
  
  <p>When I enter '89.48', form is giving 'The value '89.48' is not valid for Price'.
  I think this is becuase of default language of my PC. It is not English. It is Russian.
  <img src="https://i.stack.imgur.com/cKNKY.jpg" alt="enter image description here"></p>
  
  <p>I tried to solve this issue by <a href="http://haacked.com/archive/2011/03/19/fixing-binding-to-decimals.aspx/" rel="nofollow noreferrer">haacked.com</a> instructions:</p>
  
  <ol>
  <li>I have created Model class DecimalModelBinder and copied code from haacked.com into class</li>
  <li><p>Updated Global.asax with</p>
  
  <pre><code>ModelBinders.Binders.Add(typeof(decimal), new DecimalModelBinder());
  </code></pre>
  
  <p>No effect. Then I tried to fix it by <a href="https://stackoverflow.com/questions/9980104/mvc-3-client-side-validation-model-binding-decimal-value-and-culture-different">client-side validation</a>
  1.Added JavaScript file called "jQueryFixes.js" with code</p></li>
  </ol>
  
  <blockquote>
  <pre><code>$.validator.methods.range = function (value, element, param) {
      var globalizedValue = value.replace(",", ".");
      return this.optional(element) || (globalizedValue &gt;= param[0] &amp;&amp; globalizedValue &lt;= param[1]);
  }
  
  $.validator.methods.number = function (value, element) {
      return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:[\s\.,]\d{3})+)(?:[\.,]\d+)?$/.test(value);
  }
  </code></pre>
  </blockquote>
  
  <p>This code did not solve this issue.
  Can you suggest what I am doing wrong here?</p>