ASP.NET MVC 3 Ajax.BeginForm and Html.TextBoxFor does not reflect changes done on the server

前端 未结 2 985
情书的邮戳
情书的邮戳 2021-01-01 03:05

I\'m using the Ajax.BeginForm helper in ASP.NET MVC3 to submit a form that replaces itself with new values in the form set on the server. However when I use helpers like Htm

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-01 03:40

    in your POST method you need to do

    ModelState.Clear();
    

    to reflect the changes made after the post

提交回复
热议问题