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

 

网上找到解决办法

 

“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.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-07-11
  • 2021-07-05
猜你喜欢
  • 2021-12-13
  • 2022-12-23
  • 2021-08-29
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案