I have the following HTML helper textbox:
@Html.TextBoxFor(m => m.Email, Model.Active ? new { @readonly = "readonly", @style = "background:#E8E8E8" } : new Object { })
When I change the email value in the action (in the model being returned) then set the active=true
(which is also in the model) to make it readonly, the email textbox value isnt updated with the new value coming from the model, and i checked to confirm that the model is going back with the new email and active=1.
Its as if the readonly is being set before the value from the model is being rendered.
Any help is appreciated, thankx