What is Difference between Callbacks and Postback in
ASP.NET?
Answer Posted / alb.shah
Callback : It is a way to send a request to the web page
from the client script. Postback is an expensive call with
processing overhead. In callback a client function sends a
request and a special marked method is invoked on the
server. It does the processing & returns the value which is
received by another client function to process the result.
To have client side callbacks, the page has to implement
ICallbackEventHandler & implement functions
RaiseCallBackEvent & GetCallBackResult.
PostBack: Postback is the event which sends the form data to
the server. The server processes the data & sends it back to
the browser. The page goes through its full life cycle & is
rendered on the browser. It can be triggered by using the
server controls.
Callback is also the form of Postback, but the difference
is in postback execute a complete page life cycle and whole
page redraw, in callback only specific portion (Contorl) is
executed/redraw using client side scriptiong.
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
How many types of cookies are available in asp?
What is fulltrust?
What is difference between asp.net and asp?
What is GAC in ASP.NET 2.0
What is the request flow used for asp.net mvc framework? : asp.net mvc
How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?
How many types of file extensions for razor views in ASP.Net MVC?
What’s difference between “optimistic” and “pessimistic” locking?
What are server side controls?
Which method is used to perform all validation at the page level?
What is difference between session and cookies in asp net?
What is the main function of url routing system in asp.net mvc? : asp.net mvc
How do you secure your configuration files to be accessed remotely by unauthorized users?
What are the different method of navigation in asp.net?
Apart from IDE what are the enhancements in asp.net 2.0?