我的按钮后面有一个ajax代码,当我点击按钮时会出现这个错误:(我使用的是Asp.NET) 这是我的代码:
$.ajax({
type: "POST",
url: "../../portal/ajax.aspx/CalculatePostPrice",
contentType: "application/json; charset=utf-8",
dataType: "json",
data: JSON.stringify({ city: city, transportId: transport, domain: domain, cookie: cookie }),
success: function (response) {
$("#<%= this.lbl_Transfer_Price.ClientID %>").text(response.d);
},
failure: function (response) {
alert("Error!");
}
});