您可以从这里开始阅读jQuery.ajax()
实际上,Controller
Action是一个公共方法,可以通过Url访问。因此,可以从Ajax调用中对Action进行任何调用,无论是MicrosoftMvcAjax还是jQuery。对我来说,jQuery是最简单的一种。我在上面给出的链接中有很多示例。一个ajax调用的典型示例是这样的。
$.ajax({ // edit to add steve's suggestion. //url: "/ControllerName/ActionName", url: '<%= Url.Action("ActionName", "ControllerName") %>', success: function(data) { // your data could be a View or Json or what ever you returned in your action method // parse your data here alert(data); }});更多示例可以在这里找到



