I'm a little doubtful and I barely know where to start, so I'm going to turn to college students:
I have a page with% as% (I am using asp.net-mvc ). It has a list, assuming the elements are A, B, C, D, E. The value of these elements comes from the database and both are already being loaded correctly.
Assuming I want to leave the 'B' and 'D' values available for editing, how do I do it? And how do I add cshtml
to this list?
EDIT
I'm using this property
new { htmlAttributes = new { @readonly = "readonly" } }
But it did not work. It still allows editing, it follows like this my code.
<td> @Html.EditorFor(modelItem => item.obs, new { htmlAttributes = new { @readonly = "readonly" } })</td>