Difference between Synchronous and Asynchronous Methods as
What is difference between Synchronous and Asynchronous Methods in asp.net c#?????
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manikandan MurugesanRank #300 · 8.4K reputationPosted Jul 8, 2017, 9:00 AM EDT
Simplified, the traditional request and response model for web pages is Synchronous (all happens at the same time), in that a request is made, usually by typing a URI into a browser and hitting Enter, and everything is returned at once. To see any updates, or to validate a page etc, another full request is made, and the new response comprises a different version of the page. All of it. It's Request... wait. Request... wait.
With Asynchronous calls, an agent (xmlhttprequest) is used to fire requests for small amounts of information etc in response to user actions on the page. The requests are made behind the scenes, and do not require a full page postback. Javascript is used to provide the event handler that will cause the request to be made, and is usually used to process the resulting response (updating a part of the page perhaps). In the meantime, the user has full access to the page and can continue to do what they were doing, such as completing a form, watching stock prices, composing email or whatever.