ASP.Net Ajax - PageMethods Synchronously Calling and Finding Results

How ASP.Net Ajax - PageMethods Synchronously Call and Search Results?

I am currently making an async call and working with data:

function checkName(name) {
     PageMethods.IsAvailable(name, onSuccess);
}

function onSuccess(result, context, method) {
    //... do something with result ....
}

How can I do the same in sync with the result ?

+2
source share
1 answer

IMHO this is not possible with ASP.NET AJAX because the generated wrappers use asynchronous calls. By the way, you can use jQuery to call the PageMethod method , where is the installation issue async: false.

+8
source

All Articles