Difference between Asynchronous & Asynchronous Postback in AJAX

Posted By  Mostafa Elzoghbi On 16 Jun 2010 09:06:27
emailbookmarkadd commentsprint
No of Views:1738
Bookmarked:0 times
Votes:0 times

Introduction

Today i want to share with you some important tips for asp.net AJAX development,if you are developing an ajax website,sure you are using Synch. and Asynch postbacks in your page,what i want to share with you are the following tips:

1) Asp.Net AJAX executes only 1 Asynchronous postback at a time,which means if you have 2 buttons doing asynch. postback the ajax will execute one action at a time.

2) The difference between Synch and Asynch postback is major,in Synch postback the ajax is renedering the whole page for any postback which is not required usally if you have multiple update panel in your page.

3) In Asych postback the Ajax only render the panel which cause the postback,for example,if you have 3 update panels,and one of them cause postback ,the only update panel which contains the button will be rendered.

4) you can manage Synch or Asynch Postback in your page using an AJAX Class called PageRequestManager,sample code :

Sys.WebForms.PageRequestManager.getInstance().abortPostBack();

 Hope this tips are helpful in your ajax programming.

Sign Up to vote for this article
Other popular Tips/Tricks
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top