0
I use the property asp-for
in the elements of my View
to pass their values to the Controller
at the time of post
page.
<input id="txtExamNumber" asp-for="ExamNumber" class="form-control" />
What I realized is that if I turn off the field (disabled
) through javascript
, the Binding for the Controller
no longer works. In fields hidden
, for example, it works perfectly.
What is the explanation for this behavior? There are ways around?