function GetJson() { // Send an AJAX request $.ajax({ type: "POST", url: "/api/Product", data:{name:'Hello'}, dataType: 'json', success: function (response) { alert(response); }, error: function (xhr, ajaxOptions, thrownError) { alert(xhr.status); alert(thrownError); } }); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)