views:

33

answers:

0

When I use a form html helper method in one of my views like <%=Html.Hidden("id", "some id text") %> it creates a hidden input field for me but it puts the wrong value in there.

Instead of getting

<input name="id" type="hidden" value="some id text"/>

I get

<input name="id" type="hidden" value="11000"/>

So the value is being found from somewhere else. In this case it's the primary id of the parent record. So it is an id, it's just the wrong id.

Does anyone have any ideas? I'm pretty sure this didn't happen in MVC1

related questions