Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
What is the difference between synchronous postback and asynchronous postback? I'm beginner in ASP.Net so please define it with code and description.
Posted

synchronous postback: Complete page goes to server and back with the result.

asynchronous postback: Partial page/Part of the web goes to the server(concern part) and back with the result.

Example:

If you have 2 drop-downs in your page 1 for country and other for city, binding of the cities in the city drop-down totally depend on the country, instead of sending whole page to the server just send/update those drop-downs to server which are our concern(other page parts will be static so it will remains the same at client sideand no need to send them to server) that will increase performance of our web applications.

Let me know if you still have any confusion.

Thanks,
 
Share this answer
 
Comments
Raje_ 18-Sep-12 0:48am    
Well explained, +5
Afzal Shaikh 18-Sep-12 0:54am    
thank you Raje :)
* Asynchronous postback renders only the required part of the page; whereas,
synchronous postback renders the entire page for any postback.

* Asynchronous postback executes only one postback at a time, that is, if you have two buttons doing asynchronous postback, the actions will be performed one by one; whereas,
synchronous postback executes all the actions at once.

* Asynchronous postback only modifies the update panel that raises the postback; whereas, synchronous postback modifies the entire page.

Have a look here[^] and more similar threads here[^]
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900