I was writing code in Page_Load and I used IsPostBack in the first place but then I came across with IsAsync and IsCallback properties. I started to think and they look like somewhat the same. From google I found some information:
IsPostBackis true when the page is posted via a form method, I agree 100%.IsCallBackis true when the page has been called back from an AJAX call, Then for what purpose IsAsync is for?
from MSDN "IsCallBack: Gets a value that indicates whether the page request is the result of a callback."IsAsyncwhen an ASP.net AJAX partial update is made ,its an Asynchronous postback.
However I still have some questions:
- What is a callback and how it is different from a postback.
- Clearly differentiate among IsPostBack, IsAsync and IsCallback.
- Currently I'm working on a WebApp, which can perform postBack through jQuery Ajax. So to identify the jQuery Ajax I should use IsPostBack.