Does anyone know the script necessary to check to see if you are in a anync postback via JavaScript?
Thanks.
Does anyone know the script necessary to check to see if you are in a anync postback via JavaScript?
Thanks.
Most libraries (jquery etc) set the X-Requested-With header to XMLHttpRequest so you could test for this in the request object, however you do not say your using msajax, jquery or custom script to do the xhr calls. If you give more detail I can advise better.
Other info here that may help you
In the end I used the following which gave me the functionality I required:
Sys.WebForms.PageRequestManager.getInstance()._postBackSettings.async