call server-side method from client-side in asp.net
<p>I am calling a specific WebMethod from client side like this:</p>

<pre><code>function openSmallPopup(int) {
        PageMethods.GetTenantInfo(int, OnGetMessageSuccess, OnGetMessageFailure);
        return 'I need here to return the result';
    }

    function OnGetMessageSuccess(result, userContext, methodName) {
        alert(result);
    }
</code></pre>

<p>Well, the result is successfully displayed in <code>OnGetMessageSuccess</code>. The single problem is that I really need to return that result in the initial <code>openSmallPopup</code> method...Do you guys know any way to do this?</p>
