$.ajax({
type: "POST",
url: "Default.aspx/WebMethodName",
data: '{}',
contentType: "application/json",
dataType: "json",
success: function (data) {
},
error: function (x, e) {
alert("The call to the server side failed. " + x.responseText);
}
})
and your method should be
[webmethod]
public static string WebMethodName()
{
return "success";
}