Today Tip : Difference between Asynchronous & Asynchronous Postback in AJAX

Hi Folks,

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.

Regards,
Mostafa arafa

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>