With jQuery you are able to invoke an action of a Asp .Net MVC application’s controller.
This is the code you need:
The parameter “data” of the function called in case of success contains the return value by the server call.
However there are many others useful parameters you can use. For a complete list go here. It’s also possible to make the same call but with a Json return value by the $.getJSON funtion.
133 thoughts on “How to call a controller action by jQuery”
Comments are closed.