I tried several answers posted on stackoverflow. However, the following doesn't seem to work:
@Html.TextArea("Comments", Model.Comments, Model.ReadOnly ? new { @disabled = "disabled"} : null)
I also tried:
@Html.TextArea("Comments", Model.Comments, Model.ReadOnly ? new { disabled = "disabled"} : null)
Any idea what am I doing wrong?