Reputation: 19407
Does anyone know the script necessary to check to see if you are in a anync postback via JavaScript?
Thanks.
Upvotes: 0
Views: 3460
Reputation: 19407
In the end I used the following which gave me the functionality I required:
Sys.WebForms.PageRequestManager.getInstance()._postBackSettings.async
Upvotes: 3
Reputation: 78667
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
Upvotes: 0