Asynchronous and synchronous postback in ASP.NET

后端 未结 4 1018
清歌不尽
清歌不尽 2020-12-10 08:05

What are the differences between asynchronous and synchronous postback?

4条回答
  •  时光取名叫无心
    2020-12-10 08:33

    AsyncPostBackTrigger: Asynchronous Postback triggers update the page partially without refreshing the whole page (AJAX)
    -Converts postbacks into async callbacks
    -Typically used to trigger updates when controls outside an UpdatePanel post back If ChildrenAsTriggers="false", can be used to specify which controls inside UpdatePanel should call back rather than post-back

    PostBackTrigger: Postback triggers update the complete page caused by complete post of the page to the server.
    -Lets controls inside UpdatePanel post back
    -Typically used to allow certain controls to post back when ChildrenAsTriggers="true"

提交回复
热议问题