Html.TextBoxFor does not show updated value in POST action

前端 未结 4 2147
不思量自难忘°
不思量自难忘° 2021-02-13 21:12

In my view I have

      <%:Html.LabelFor(model => model.IPAddress)%>

    
<%:Html.TextBoxFor(model => m
4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-13 21:31

    Try:

    ModelState.Clear();
    return View(model);
    

    If not result! return a JSON Result and then update by javascript

提交回复
热议问题