Update div using ajax.beginform inside asp mvc view

前端 未结 1 1797
说谎
说谎 2020-11-30 15:53

I want to show a success message after calling the following ajax.beginform from Index view

@using (Ajax.BeginForm(\"Insert\", \"Home\", new AjaxOptions() {          


        
相关标签:
1条回答
  • 2020-11-30 16:30

    If your redirecting to another page its because you do not have the correct scripts loaded (or have duplicates or have them in the wrong order) so its doing a normal submit.

    Ensure you have included (in order)

    jquery-{version}.js
    jquery.unobtrusive-ajax.js
    
    0 讨论(0)
提交回复
热议问题