As far as I understand, it is impossible to call webmethod / pagemethod a child / user control.
If you move this web method to the parent aspx, you will need to do something like this:
jQuery.ajax({
type: 'POST',
contentType: 'application/json; charset=utf-8',
data: '{}',
dataType: 'json',
url: 'MyPage.aspx/SomePageMethod',
success: function(result){
alert(result);
}
});
source
share