Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9180087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:57:36+00:00 2026-06-17T17:57:36+00:00

I am using the VS 2012 RC and trying to follow the MVC4-tutorial from

  • 0

I am using the VS 2012 RC and trying to follow the MVC4-tutorial from here:

http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/accessing-your-model%27s-data-from-a-controller

I get to “Enter some details about a movie and then click the Create button.” and then get an error:

"The value '9.99' is not valid for Price."

So I figure it needs a decimal comma instead and try with 9,99 instead with the following results:

"The field Price must be a number."

So I do not know how to enter the number and satisfy the validation checks. There seem to be several. So I enter another number 9 (without any decimals or decimal character) and then it works.

I then press ‘Edit’ to see if I can now change the numbers. The price is now presented as

9,00

with a decimal comma, and the date as

01.11.1989 00:00:00

The following errors are then displayed immediately, after simply copying the date and price fields to the clipboard:

The field ReleaseDate must be a date.

and

The field Price must be a number.

and it is again impossible to save.

So I guess, ASP.NET MVC scaffolding automatically requires that numbers are formatted using culture invariant (decimal point) and using my (German) culture which requires decimal comma. It further requires dates to be formatted culture invariantly which I would guess is the US date format.

Then when displaying, it uses the current (German) culture by default.

I am unfortunately using a computer with German locale settings.

I would like the values to display using the current culture, which it already does.
But I would also like the validators, of which there seem to be several, to accept any valid format, or at a minimum the format that is valid in the current culture.

What is the best solution for this for a real application (as opposed to the tutorial)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:57:37+00:00Added an answer on June 17, 2026 at 5:57 pm

    It turns out, the tutorial describes how to fix this later in the tutorial.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to follow this tutorial: http://viralpatel.net/blogs/2010/11/spring3-mvc-hibernate-maven-tutorial-eclipse-example.html I did not ran into
I'm trying to emulate this graph: http://www.nytimes.com/interactive/2012/11/30/us/tax-burden.html Here is the bare-bones rendition: http://jsfiddle.net/jd5Ym/6/ I
Im using sql server 2012 and its replication feature. Here im trying to manually
I am trying to extract datetime info from 2012/04/03 10:06:21:611747 using format String dateformat
I have two projects: Mvc3TestSvcRef & Mvc4TestSvcRef. Mvc3TestSvcRef is from the ASP.NET MVC 3
I'm using SQL Server 2012 and trying to implement transactional replication. Im using the
I am currently trying to figure out KendoUI. I am using version 2012.1.322. I
In my MVC view (using VS 2012 RC), I'm attempting to use jQuery to
I'm trying to follow a screencast on how to return a result from a
I'm trying to copy a file to iCloud using the follow code: NSError *error;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.