MVC4 Ajax.BeginForm not replacing UpdateTargetId

后端 未结 12 1397
野的像风
野的像风 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:15

    I was having similar problems to you - I had all my scripts bundled and loading correctly, and had all code implemented correctly. I checked package manager to see if any scripts needed to be updated and jQuery and jquery.unobtrusive-ajax did. jQuery went from 1.9 to 1.9.1. When I rebuilt my solution the target DIV was updated successfully. Try and update all JS in your solution, it may work.

提交回复
热议问题