JSON 객체를 통해 웹 서비스에 (Asp.Net 2.0 ASMX)을 객체 :패스 바이트 배열 내가 코드를
세션 [ "타임 스탬프"]은 LINQ를 사용하여 오는 바이트 배열을 가지고
법인
에 지금은 그게 웹 서비스 같은 서명이있는 오류에게 발생이 함수를 호출 할 때 : 내가 바이트 [] 사방 문자열로 작동 교체 할 경우
[WebMethod]
public string IsRowChanged(int en_id , byte[] timestamp)
{
}
합니다.
$.ajax({
type: "POST",
url: "UpdateEntityService.asmx/IsRowChanged",
data: "{ 'en_id':'" + '<%= Request.QueryString["entity_id"] == null ? "1" : Request.QueryString["entity_id"] %>' + "' , 'timestamp': '" + '<%= (Session["timestamp"]) %>' + "' }",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
var result = msg.d;
if (result == "0") {
save_valid();
$.prompt("Data Saved Sucessfully");
}
else {
$.prompt("Data Concurrency Error! Reload the Page.. by pressing F5");
}
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert(textStatus);
alert(textStatus);
alert(errorThrown);
}
});
도움을 주시면 감사하겠습니다.
오류 메시지가 무엇입니까? –
경고 메시지 상자에 "오류"가 표시됩니다. 세부 메시지가 표시되지 않습니다. 바이트 배열이 string.So로 문제가 될 수도 있습니다 말을 전달 여부를 모르겠다. – Moons
왜 디버거를 넣고 함수가 호출되는지 여부를 확인하지 않습니까? 호출에 대한 응답을보기 위해 방화범을 확인 했습니까? – naveen