When I use the html method method of a form in one of my views, for example <%=Html.Hidden("id", "some id text") %>, it creates a hidden input field for me, but it puts the wrong value there.
Instead of getting
<input name="id" type="hidden" value="some id text"/>
I get
<input name="id" type="hidden" value="11000"/>
Thus, the value is obtained from another place. In this case, this is the primary identifier of the parent record. So this is id, this is just the wrong identifier.
Does anyone have any ideas? I am sure this did not happen in MVC1
source
share