How to know the current postback is a full postback or partial postback in Asp.net

Here is the code used to differentiate between partial or full post back in Asp.net.
if (Page.IsPostBack)
{

if (ScriptManager.GetCurrent(this.Page).IsInAsyncPostBack)

{
//Partial post back

}

else

{

//full post back
}

}

Comments