@Html.EditorFor not refresh after post

Nur Izzati Binti Rosli 1 Reputation point
2022-10-28T06:09:03.32+00:00

Hi.. my model have data as you see at below image.. but why my screen not showing the latest value? How I know it is not updated is by returning different value. Before post, DESCR is MANDARIN, I purposely return DESCR is ENGLISH to confirm that the textbox is not refreshed..

This show that I do have the value inside my model

Below is how I pass the record..

This is how I pass the model to the partial view

Developer technologies ASP.NET Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nur Izzati Binti Rosli 1 Reputation point
    2022-10-28T06:58:42.907+00:00

    I solved the issue by using ModelState.Clear(); at the controller before returning the view.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.