I am using above method & it works well with one parameter in URL.
e.g. Students/getstud/1
where controller/action/parameter format is applied.
Now I have an action in Students controller that accepts two parameters and return a JSON object.
So how do I post data with $.getJSON()
using post method?
Similar methods are also acceptable.
The point is to call an action of the controller with AJAX.
get
ingetJSON
means use GET to get some json. – Calie