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 the use of web.config? Difference between machine.config and Web.config?

5 Answers  


What types of data validation events are commonly seen in the client-side form validation?

0 Answers  


main difference between asp.net2.0,asp.net1.1,asp.net1.0

15 Answers   Inflexion, Infosys, iSoft, Microsoft, Prakruthi,


What is a web server? What are the load limits in it?

0 Answers   Wipro,


Define a web service in .net?

0 Answers  






How does a content page differ from a master page?

0 Answers  


What are the different methods that are used during the page load?

1 Answers   Siebel,


how to get the vb6.0 COM Component in to the .Net application?

3 Answers   iSoft,


Can we use MSSql as backend in asp.net...if yes then How.?

0 Answers   MCN Solutions,


What is the difference between and ActiveX dll and control?

2 Answers   Microsoft,


Does JITting occur per-assembly or per-method? How does this affect the working set?

1 Answers  


Explain some of the major built-in objects in asp.net

0 Answers  


Categories