Does anyone know the script necessary to check to see if you are in a anync postback via JavaScript?
Thanks.
up vote
0
down vote
favorite
|
Does anyone know the script necessary to check to see if you are in a anync postback via JavaScript? Thanks.
|
||
|
up vote
2
down vote
accepted
|
In the end I used the following which gave me the functionality I required: Sys.WebForms.PageRequestManager.getInstance()._postBackSettings.async |
||||
|
up vote
0
down vote
|
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 |
||
|