Calling ASMX from jQuery
问题 I am trying to call an ASMX method from jQuery without success. Following is my code, and I don't understand what I am missing. File Something.js, function setQuestion() { $.ajax({ type: "POST", data: "{}", dataType: "json", url: "http: //localhost/BoATransformation/Survey.asmx/GetSurvey", contentType: "application/json; charset=utf-8", success: onSuccess }); } function onSuccess(msg) { $("#questionCxt").append(msg); } File SomethingElse.cs, [WebService(Namespace = "http://tempuri.org/")]