View not updating after post

it should be the ModelState problem.
if you use Htmlhelper to Display id value.
Default HtmlHelper display ModelState value not Model.
Try display model value in view

<td>
    @Model.id
</td>

or Clean ModelState Value in controller

ModelState.Clear();

or reset id value after SaveChange.

theCar.Save();
ModelState["id"].Value = theCar.id
return View(theCar);

Reset the value of textarea after form submission

Leave a Comment