title: error with decimal in mvc3 - the value is not valid for field
body: <p>I'm following [Getting started with ASP.NET MVC 3][1]. And I can't add/edit with value of Price = 9.99 or 9,99. It said: "The value '9.99' is not valid for Price." and "The field Price must be a number."</p>
  
  <p>How to fix this?</p>
  
  <p><strong>Model:</strong></p>
  
  <pre><code>    public class Movie
  {
      public int ID { get; set; }
      public string Title { get; set; }
      public DateTime ReleaseDate { get; set; }
      public string Genre { get; set; }
      public decimal Price { get; set; }
  }
  
  public class MovieDbContext : DbContext
  {
      public DbSet&lt;Movie&gt; Movies { get; set; }
  }
  </code></pre>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>public class MovieController : Controller
  {
      private MovieDbContext db = new MovieDbContext();
  
      //
      // GET: /Movie/
  
      public ViewResult Index()
      {
          var movie = from m in db.Movies
                       where m.ReleaseDate &gt; new DateTime(1984, 6, 1)
                       select m;
  
          return View(movie.ToList()); 
      }
  
      //
      // GET: /Movie/Details/5
  
      public ViewResult Details(int id)
      {
          Movie movie = db.Movies.Find(id);
          return View(movie);
      }
  
      //
      // GET: /Movie/Create
  
      public ActionResult Create()
      {
          return View();
      } 
  
      //
      // POST: /Movie/Create
  
      [HttpPost]
      public ActionResult Create(Movie movie)
      {
          if (ModelState.IsValid)
          {
              db.Movies.Add(movie);
              db.SaveChanges();
              return RedirectToAction("Index");  
          }
  
          return View(movie);
      }
  
      //
      // GET: /Movie/Edit/5
  
      public ActionResult Edit(int id)
      {
          Movie movie = db.Movies.Find(id);
          return View(movie);
      }
  
      //
      // POST: /Movie/Edit/5
  
      [HttpPost]
      public ActionResult Edit(Movie movie)
      {
          if (ModelState.IsValid)
          {
              db.Entry(movie).State = EntityState.Modified;
              db.SaveChanges();
              return RedirectToAction("Index");
          }
          return View(movie);
      }
  
      //
      // GET: /Movie/Delete/5
  
      public ActionResult Delete(int id)
      {
          Movie movie = db.Movies.Find(id);
          return View(movie);
      }
  
      //
      // POST: /Movie/Delete/5
  
      [HttpPost, ActionName("Delete")]
      public ActionResult DeleteConfirmed(int id)
      {            
          Movie movie = db.Movies.Find(id);
          db.Movies.Remove(movie);
          db.SaveChanges();
          return RedirectToAction("Index");
      }
  
      protected override void Dispose(bool disposing)
      {
          db.Dispose();
          base.Dispose(disposing);
      }
  }
  }
  </code></pre>
  
  <p><strong>View:</strong></p>
  
  <pre><code>    @model MvcMovies.Models.Movie
  
  @{
  ViewBag.Title = "Create";
  }
  
  &lt;h2&gt;Create&lt;/h2&gt;
  
  &lt;script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"&gt;       &lt;/script&gt;
  &lt;script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"&gt;&lt;/script&gt;
  
  @using (Html.BeginForm()) {
  @Html.ValidationSummary(true)
  &lt;fieldset&gt;
      &lt;legend&gt;Movie&lt;/legend&gt;
  
      &lt;div class="editor-label"&gt;
          @Html.LabelFor(model =&gt; model.Title)
      &lt;/div&gt;
      &lt;div class="editor-field"&gt;
          @Html.EditorFor(model =&gt; model.Title)
          @Html.ValidationMessageFor(model =&gt; model.Title)
      &lt;/div&gt;
  
      &lt;div class="editor-label"&gt;
          @Html.LabelFor(model =&gt; model.ReleaseDate)
      &lt;/div&gt;
      &lt;div class="editor-field"&gt;
          @Html.EditorFor(model =&gt; model.ReleaseDate)
          @Html.ValidationMessageFor(model =&gt; model.ReleaseDate)
      &lt;/div&gt;
  
      &lt;div class="editor-label"&gt;
          @Html.LabelFor(model =&gt; model.Genre)
      &lt;/div&gt;
      &lt;div class="editor-field"&gt;
          @Html.EditorFor(model =&gt; model.Genre)
          @Html.ValidationMessageFor(model =&gt; model.Genre)
      &lt;/div&gt;
  
      &lt;div class="editor-label"&gt;
          @Html.LabelFor(model =&gt; model.Price)
      &lt;/div&gt;
      &lt;div class="editor-field"&gt;
          @Html.EditorFor(model =&gt; model.Price)
          @Html.ValidationMessageFor(model =&gt; model.Price)
      &lt;/div&gt;
  
      &lt;p&gt;
          &lt;input type="submit" value="Create" /&gt;
      &lt;/p&gt;
  &lt;/fieldset&gt;
  }
  
  &lt;div&gt;
  @Html.ActionLink("Back to List", "Index")
  &lt;/div&gt;
  public DbSet&lt;Movie&gt; Movies { get; set; }
  }
  </code></pre>