How to tell the page is in AJAX call

The way to tell if the page is in an AJAX call is to check the ScriptManager.IsInAsyncPostBack property.

Sounds trivial.

The only reason I am writting about that is the very common confusion with the Page.IsAsync property that has absolutely nothing to do with AJAX.

Leave a Reply

Your email address will not be published. Required fields are marked *