What is Difference between Callbacks and Postback in
ASP.NET?



What is Difference between Callbacks and Postback in ASP.NET?..

Answer / 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

More ASP.NET Interview Questions

What is session management in web application?

0 Answers  


What is advantage and disadvantage of viewstate

3 Answers  


What are the Types of chaching. How to implement caching

0 Answers   Microsoft,


Anyone has Latest Microsoft ASP.NET Certification Dumps for these?

1 Answers  


When using the Pager object, inorder to know which page to go, which property you have to set to grid?

0 Answers   Siebel,






how to do pakaging nd deployment

1 Answers  


What is application in asp net?

0 Answers  


What is request and response in asp.net?

0 Answers  


How to find last error which occurred?

0 Answers  


What does the hotspot class in .net do?

0 Answers  


What are validators and list some validators of asp.net?

0 Answers  


How do you relate an aspx page with its code behind page ?

4 Answers   Accenture, BirlaSoft,


Categories