I am trying to populate the textbox like this:
<span class="display-label">Volume Amount:</span><span>@Html.TextBoxFor(m=>m.VolumeAmount)</span>
This does not work. The textbox is displayed but the property’s text never populates the field. However If I do it this way:
<span class="display-label">Volume Amount:</span><span><input type"text" name="VolumeAmount" value="@(Model.VolumeAmount)" /></span>
Everything seems to work great, but when the field is changed I won’t be able to update the property without doing some AJAX.
Note: This is inside of a partial view which is loaded from a View. The View which loads it loads the partial view inside of an existing Form element.
In your controller try:
MVC likes to hang on to states from previous posts.