get values from pagemethod to jquery

Hi , here i will explain how we can get the values from pagemethods.
suppose if we r passing any values then we have to use sol (1).
if we not passing any values to pagemethod then we haev to use sol (2).
solution :-1

PageMethods.EventDetails(event.id, OnSuccess, OnFailure);
            function OnSuccess(r) {
                alert(r);
            }
            function OnFailure(r) {
                alert(r._message);
            }

solution :-2

 return PageMethods.DeleteControl(function (response) {

                alert(response);
                var abcd = response;
         });

Comments

Popular posts from this blog

what is Event Cache table in sharepoint

CAML Query syntax and options in SharePoint

Change anchor link url in sharepoint calender