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
How long should a session id be?
Explain the difference between asp.net mvc and asp.net webforms
What is asp net objects?
what is the difference between response.write() and response.output.write()?
Is asp.net web forms dead?
Which Is Faster MVC or ASP.net ?
Describe in brief .net framework and its components.
Define managed code and managed data in .net?
Which is better union or union all?
I am trying to implement sorting facility from client side code in GridView Control. So how can I fill up an Array inside client side code (using JavaScript), i want to assign my DataSet object declared and filled up on Server side(in code behind) to the array (on client side)
What is the web.config file in asp?
Briefly describe the role of global.asax?
What are uri parameters?
In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?
What is authorization in asp.net?