Hi
I'm trying to call a pagemethod that doesn't have any parameters, and I can't seem to get it working.
If I have a single parameter in the pagemethod it works fine.
$.ajax({
type: "POST",
url: "Default.aspx/getLastCallData",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
alert(msg.d);
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert('Couldnt get call data');
}
});
Any ideas.