skip to Main Content

Ajax Call to ASP.NET MVC controller – Jquery ajax

The jQuery code is : var props = [ { "Name": "firstName", "Value": "firstValue" }, { "Name": "secondName", "Value": "secondValue" } ]; $.ajax({ url: '/myURL', contentType: "application/json", async: true, type: "POST", data: JSON.stringify(props), error: function (jqXHR, textStatus, errorThrown) { console.log("FAIL:…

VIEW QUESTION
Back To Top
Search