Friday, May 7, 2010

Detecting an Ajax Async PostBack on page_load

if(!ScriptManager.GetCurrent(this).IsInAsyncPostBack)
{
//code when it is a sync postback
}
else
{
//code when it is an async postback
}