views:

38

answers:

1

hello guys what is the best way to do an AJAX post using ASP.NET MVC?

+2  A: 

You need code on the client (browser) side to initiate the call, and the easiest way to do this is to use a Javascript library like jQuery which has integrated AJAX/JSON support. You'll find that jQuery is already in your Scripts folder if you have just used the Visual Studio template for an ASP.NET MVC project. Follow the link to the jQuery site and look at its .ajax() and .json() methods for more information.

David M