Jquery ajax – Ajax method always goes to error function
I have this simple ajax method: $.ajax({ type: 'POST', url: 'http://localhost:1195/widget/postdata', datatype: "jsondata", async: false, success: function (data) { alert("ok") }, error: function (data) { alert(data.status + ' ' + data.statusText); } }); And this simple method in c#: [HttpPost]…