0
不叫我有以下Ajax調用JavaScript中web服務在asp.net
$.ajax({
type: "Post",
url: '../WebService/LoginService.asmx/LoginCheck',
data: jsondata,
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (resp) {
if (resp.d == true) {
window.location.replace("../Admin/DashBoard.aspx");
return;
}
jQuery("#lblex").css("display", "block");
},
error: function (response) {
alert(response.responseText);
}
});
這在當地當我測試工作正常,但是當我主持這是我的生產服務器上,它說沒有找到服務。 但我能瀏覽,直到路徑
../WebService/LoginService.asmx
,如果我的網址更改爲
../WebService/LoginService.asmx?op = LoginCheck
它的作品,也有。
可有人請讓我知道我需要什麼樣的配置變化在我的地方或在生產服務器做的就是他們兩個人同樣的方式
您使用的表單驗證?如果是這樣,當你在登錄之前或沒有登錄時調用這個函數。 –