Usable Asp.Net

Little things that make Asp.Net more usable

May 2008 - Posts

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.