I'm trying to make some fields editable and some fields read-only based on user permissions (MVC version 5.2.3). I can see a whole bunch of answers on this subject for the @html.EditorFor(), but not plain old @html.Editor(). I've tried the following, none of which have yielded read-only fields:
@Html.Editor(property.Name, new { @disabled = "true" })
@Html.Editor(property.Name, new { @disabled = "disabled" })
Can anyone help me? Thanks very much.