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 server control tags in asp.net.?

625


What are the asp.net 2.0 features?

550


What does mean by a neutral culture?

603


What is the mvc model?

581


What is the purpose of session management?

515






Which methods validate all the controls on a page?

550


Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

515


What does passport and windows authentication mean in ASP.NET?

649


What are the different properties of server control that exists?

568


What is an asp.net validator? And, mention its types.

590


Which is better asp.net or php?

534


How does exception management works in ASP.NET?

617


What is the difference between mvc and asp.net? : Asp.Net MVC

479


Explain the use of fragment caching.

668


Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose one over the other?

617