Skip to content
Advertisement

Calling ASP.NET MVC Action Methods from JavaScript

I have sample code like this:

JavaScript

How can I write JavaScript code to call the controller action method?

Advertisement

Answer

Use jQuery ajax:

JavaScript

http://api.jquery.com/jQuery.ajax/

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement