Display EditorFor() value as Read-Only on MVC View?
问题 I have several fields I display on most of my views in my MVC5 Code-First app: [created_date] , [created_by] , [modified_date] , and [modified_by] . For the user, I would like to include these also on my Edit() view, but unlike my other fields I do not wish to have them editable (commonly created/by and modified/by data should NOT be editable). This is how I have the fields declared on my Edit() view currently: <div class="form-group"> @*@Html.LabelFor(model => model.created_date,