I\'m passing two string parameters from a jQuery ajax call to an MVC controller method, expecting a json response back. I can see that the parameters are populated on the cl
I tried:
and C#:
[HttpPost] public ActionResult Test(string ListID, string ItemName) { return Content(ListID + " " + ItemName); }
It worked. Remove contentType and set data without double quotes.
contentType
data