I've been reading on this for a while and found that you can call a controller action by using:
$.ajax("MyController/MyAction", function(data) {
alert(data);
});
Does this mean I should add the MicrosoftMvcAjax.js or the MicrosoftAjax.js along with the Jquery lib?
Also, what should the second parameter contain in the $.ajax() function?
Lastly, any other link in stackoverflow or outside of the site that could be helpful in asp.net mvc w/ ajax and jquery?
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…