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.
I had code that was doing getJSON. I simply replaced it with post. To my surprise, it worked
$.post("@Url.Action("Command")", { id: id, xml: xml })
.done(function (response) {
// stuff
})
.fail(function (jqxhr, textStatus, error) {
// stuff
});
[HttpPost]
public JsonResult Command(int id, string xml)
{
// stuff
}