I use the asp-for
property in the elements of my View
to pass their values to Controller
at time of post
of the page.
<input id="txtExamNumber" asp-for="ExamNumber" class="form-control" />
What I noticed is that if I disable the field ( disabled
) through javascript
, the binding to Controller
no longer works. In hidden
fields, for example, works perfectly.
What is the explanation for this behavior? Is there a way around?