This is very strange and I don't know why. I have a ViewModel that return some value for my object, when rendering it, they have different values, yet, they points to the same property:
<%: Model.myProperty %>
That returns "25", which is what I've set the property to be. But when rendered it as an textbox, it returned "0" as the value for my textbox!
<%: Html.TextBoxFor(f => f.myProperty) %>
Any idea why? The property is of decimal type. Thanks.