请查,请让我了解以下法典中的问题。 我在答复中具有有效价值(我检查了我的附加警示),但在我把这一数值贴上标签时,并没有改变标签(lblData)的价值。
function LoadPlanBoard() {
$.ajax({
type: "POST",
url: "myplanboard.aspx/WebLoadPlanBoard",
data: "{flag: " + 0 + " }",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
$( #<%=lblData.ClientID %> ).val(response.d);
},
failure: function (response) {
alert(response);
},
error: function (jqXHR, textStatus, errorThrown) {
var errMessage = "An error occured serving your request. Please try again.";
if (jqXHR)
errMessage = $.parseJSON(jqXHR.responseText).Message;
alert(errMessage);
}
});
}