This question is locked. New answers and comments are not allowed.
Hello, i've noticed something unusual.
As far as I know HtmlHelpers are supposed to prefer ModelState-Values over Model-Values (at least on POST's as per http://blogs.msdn.com/b/simonince/archive/2010/05/05/asp-net-mvc-s-html-helpers-render-the-wrong-value.aspx), which at least the CurrencyTextBox does not.
See attached images. I attempt to put in 250, the server does stuff and decides to throw an concurrency exception, I redisplay the form to notify the user about this fact, but the attempted value changes to the Model-Value, even though as per the debugger (locals.png) the ModelState-Value clearly is 250.
If i replace the CurrencyTextBox with a normal one, everything works as expected.
As far as I know HtmlHelpers are supposed to prefer ModelState-Values over Model-Values (at least on POST's as per http://blogs.msdn.com/b/simonince/archive/2010/05/05/asp-net-mvc-s-html-helpers-render-the-wrong-value.aspx), which at least the CurrencyTextBox does not.
See attached images. I attempt to put in 250, the server does stuff and decides to throw an concurrency exception, I redisplay the form to notify the user about this fact, but the attempted value changes to the Model-Value, even though as per the debugger (locals.png) the ModelState-Value clearly is 250.
If i replace the CurrencyTextBox with a normal one, everything works as expected.