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


Please Help Members By Posting Answers For Below Questions

Do you know using sql cache invalidation?

720


what are the Custom controls in asp.net?

771


Explain the difference between inline and code behind - which is best in?

720


What is asp.net architecture?

739


What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?

699


What is asp.net version?

711


How many types of triggers are there in update panel?

770


How to manage different kinds of sessions in ASP.NET?

766


What is a web api? Which protocol is used in a web api?

741


How can we update records in gridview?Is there any appropriate code for it?

1834


Describe the Server Control Events of ASP.NET?

881


What are the various ways to send content from one page to another?

705


What is globalization and localization in asp net?

696


A web service can only be written in .net? State whether true or false.

731


Define the term Scavenging in Caching?

772