Ajax.BeginForm MVC3 使用

在一个项目中,只要点击一下按键,就会在当前页面显示数据; 在自己的项目中试用,结果,他跳转到了另外一个页面(就像不用异步刷新一样)。

网上找到解决办法

“make sure the ajax script is referenced? ...for ajax, I think this is the only script you will need(jquery.unobtrusive-ajax.js ) ”

 

对于MVC3,要使用Ajax,jquery.unobtrusive-ajax.js  是必须引用的js.

原文地址:https://www.cnblogs.com/z_lb/p/2162134.html