title: Why does read-only property on my view model goes blank after the postback?
body: <p>This is an MVC - razor question. [The environment is MVC 4.0.] I have a view model with one editable property and one display-only property. In my view, I am using @html.TextBoxFor() method for the editable property. In order to display the display-only property, I am directly putting @Model.Property. I have a server-side validation on the Editable property and if the posted value for the Editable property is NOT valid, I am returning the same view with the validation error in the validation summary section of the view. Now, here is the problem - After submitting the View form with invalid value for the editable property, I see the error for the editable property, but the display-only property is blank. Does MVC posting BLANK/Nothing for my Display-only property ? How do I get around this issue ?</p>