I want to make readOnly with EditorFor in edit page.
I tried to put readonly and disabled as:
@Html.Editor
You can do it this way:
@Html.EditorFor(m => m.userName, new { htmlAttributes = new { disabled = true } })