MVC4 Ajax.BeginForm not replacing UpdateTargetId

后端 未结 12 1341
野的像风
野的像风 2020-12-30 04:38

There are so many topics on SO about issues with the Ajax.BeginForm not correctly updating the target element with the return partial view:
mvc4 ajax updating same page<

12条回答
  •  無奈伤痛
    2020-12-30 05:14

    For those that need a bit more explanation....

    Type this in Package Manager Console PM> Install-Package jQuery.Migrate

    Reference this in your partialview:

    script src="~/Scripts/jquery.unobtrusive-ajax.js">

    Happy coding everyone.

提交回复
热议问题