I have created the ajaxmethod in a usercontrol, which perform server side validation, on the basis of result of this method i am calling the buttons serverside click event in the callback of ajaxmethod.
It works fine, but in certain cases when it takes somewhat more time for validation the callback is not called or i am not getting the response from the server.
How do i make the callback to wait for serverside validate