Due to the compatibility of JS version, In VS, if the Jquery.unobtrusive-ajax.js version is not updated with NuGet, then the jquery version should only be limited to 1.7-1.8, if the reference 2.1, then Microsoft itself encapsulated a set of Ajax can not be used, so, everyone in the use of ajax.b Eginform, if you encounter some problems, may wish to try to drop the version of jquery, perhaps your problem will be solved;
One: The difference between jquery.unobtrusive-ajax.js and MicrosoftAjax.js,microsoftmvcajax.js
In MVC 1, version 2, they use their Ajax class libraries to implement AJAX requests, and the corresponding JS file is Microsoftajax.js,microsoftmvcajax.js
But programmers prefer jquery, "write less, does more", and Microsoft realizes it, slowly accepting jquery after soft, and then having a jquery.unobtrusive-ajax.js;
<add key= "clientvalidationenabled" value= "true"/>
, only at this time, the previous Ajax.beginform query to the backend function to follow your wishes.
However, if you want to use Jquery.unobtrusive-ajax.js (more lightweight), you can either set the true to false directly or delete the two configurations.
The above refers to two different JS files, you should pay attention to the JS version of the problem, because Microsoft out of these two sets of JS file is still very early, especially MicrosoftAjax.js,microsoftmvcajax.js These two JS files, If you have not been able to always lower the JS version, all the way to the line on it!
Content is a string that is returned and then automatically parsed into a htmlstring in the foreground.
The above two effects are the same!
So everyone properly consider their own coding appropriate style;
Next, let me steal a picture to explain the relationship.