Modify posted input values on onbegin of ajax.beginform

前端 未结 4 1104
庸人自扰
庸人自扰 2020-12-17 16:49

Can posted input values on onbegin of ajax.beginform be modified? I have to modify values of some of the input fields after the form is submitted.

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-17 17:15

    You're having this issue because funBegin is called after the form data has been serialized. From MSDN:

    AjaxOptions.OnBegin Property: Gets or sets the name of the JavaScript function to call immediately before the page is updated.

    I suggest you write your own submit handler:

提交回复
热议问题