What is the difference between IsPostBack, IsAsync and IsCallback?

I wrote code in Page_Load, and I used it IsPostBackfirst, but then I came across properties IsAsyncand IsCallback. I started to think, and they look a bit the same. From Google, I found some information:

  • IsPostBack true, when the page is submitted via the form method, I agree 100%.
  • IsCallbacktrue when the page was called from an AJAX call. Then what is IsAsync for?
    from MSDN " IsCallback: gets a value indicating whether the page request is the result of a callback."
  • IsAsyncwhen a partial update of ASP.net AJAX is performed, its asynchronous postback.

However, I still have a few questions:

  • What is callback and how is it different from postback?
  • A clear difference between IsPostBack, IsAsync and IsCallback.
  • I am currently working on WebApp which can execute postBack through jQuery Ajax. Therefore, in order to identify jQuery Ajax, I have to use IsPostBack.

Useful links:

The difference between IsCallback and IsPostback

+3
source share
1 answer

IsAsync It does not depend on the type of request made by the client, and it is used to identify the page that is processed asynchronously, as described in the documentation:

Gets a value indicating whether the page is processed asynchronously.

You can read more about asynchronous pages in this MSDN journal article Asynchronous Pages in ASP.NET 2.0 .

IsCallback , . - ASP.NET, , , IsPostback , , . IsPostback , , , , UpdatePanel.

, , , IsPostback , ScriptManager.GetCurrent(this.Page).IsInAsyncPostBack .

, - ASP.NET.

+7

All Articles