Folks!
What is the difference between PostBack and IsCallback ( !IsPostBack and if(!IsCallback))
Like in the following Code Snippet:
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
}
if(!IsCallback)
{
}
}
}
As far as I know, when I 1) refresh the page or 2) revert back to the page after round trip, the behavior is such that IsPostBack = !IsCallback. I don't find any difference.
Can you please explain with example code?
I just want a sample code (for Page_Load event) that will demonstrate the difference in the Page_Load event so that I can toggle breakpoint and understand it for myself.
Thanks.