What is Difference between Callbacks and Postback in ASP.NET?
Answers were Sorted based on User's Feedback
Answer / ziya
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.
Is This Answer Correct ? | 39 Yes | 2 No |
Answer / chandra sekhar dola
The difference between a callback and postback is that, as
with a postback, a callback does not refresh the currently
viewed page (i.e. does not redraw the page). You can think
of it as a quick trip back to get some data etc. For
example if there were two drop down boxes, the second
dependant on the value of the first, when a user selects a
value of a the first, rather then posting the whole page,
doing some server side calculations and returning a new
whole page to the client, a callback can enable you to only
go fetch the required data. Obviously from this, View State
is not updated with a callback (it's the same instance of
the page just updated!!!).
Is This Answer Correct ? | 40 Yes | 5 No |
Answer / ahsan raza
A callback is a special type of postback in which the
entire page is not redrawn and also the view state remains
the same....
Is This Answer Correct ? | 28 Yes | 5 No |
Answer / dhiraj kumar
Callbacks :- It is a way to get data related to particular
control which is implementing call back. Callback is
nothing but asynchronous postback in which only data
related to the control is came instead of whole page data.
Postback :- It is property of server controls in which
whole page get refreshed. It sends data to server and then
server process the data and after completion of life cycle
process, result is rendered on browser.
Postback is heavyweight methods or execution is slow but
callback is lightweight methods or execution is fast
because here whole page is not getting refreshed or
rendered.
Is This Answer Correct ? | 18 Yes | 5 No |
Answer / muhammad imran
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 ? | 13 Yes | 5 No |
Answer / mani maran
call back does not refresh the whole page...
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / imran ghani
“A postback is a request sent from a client to server from the same page, user is already working with.“
“A callback is generally a call for execution of a function after another function has completed.â€
http://www.webdevelopmenthelp.net/2013/11/difference-between-postback-and-callback.html
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / guest
This is " Cliet Site Call back to server site "
which won't require page refresh to execute a server call
and its based on XMLHTTP protocol or so
PostBack is for Server Site
Rahul Tripathi.
rahultripathi@myway.com
Is This Answer Correct ? | 7 Yes | 14 No |
Answer / kiran varma
Postback is something that happens whenever the server
gets a request for this page from the second time onwards
It need not be mandatorily a submit button, probs even a
click which requiers a server side validation is also
results in a postback.
A callback function is a function which you register/ask to
be called later, usually as a result of a particular event
happening.
Is This Answer Correct ? | 5 Yes | 18 No |
Answer / kilorf
The Above all commands are wrong.Donot follow These.
Is This Answer Correct ? | 12 Yes | 33 No |
What is recordset asp?
relacement of websevices in .net 3.0?
How to authenticate users using web.config ?
2 Answers Accenture, Amazon, BirlaSoft, Cap Gemini,
How do sessions work?
how can you bind data from dataset to XML file
When do you set "<IDENTITY impersonate="true" />" ?
How do you construct HtmlResponseMessage?
2. Why did you choose this career?
2 Answers Schwartz Oil, Swatz Oils,
How many types of validators are there in asp net?
Explain how viewstate is being formed?
Can you explain what inheritance is and an example of when you might use it?
What is the file extension of web service?