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

What are the difference between function and stored procedure in .net programming language?

253


What are the versions of garbage collection?

1456


What is application state?

511


What is the use of HttpHandlers? When to use this?

623


What is the difference between page directive include and action tag include?

521






Explain advantages of caching?

528


How to prepare culture-specific formatting in .net.

511


if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.

1833


Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net

1502


Where sessions are stored?

650


What is master page in dtp?

543


How do you implement postback with a text box?

558


Define page output caching?

572


Is asp.net free?

555


What is Dynamic Web and discuss its usage with the help of real life examples?

594