Vote count:
0
i have this
var bes = '0a45bfe9-d9e2-4721-8d10-3043c46c96a9';
var dataAjax = "{'gt':" + bes + "}";
$.ajax({
type: "POST",
url: "asd.aspx/asd",
data: dataAjax,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
console.log(msg.d);
},
error: function (result) {
console.log('Failed' + result.responseText);
}
});
i am getting below error
"Failed{"Message":"Invalid JSON primitive: gt.","StackTrace":" at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject()\r\n
what is the problem ? guys help me.
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire