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 data reader in asp.net?
What are the different types of validation controls in asp.net?
How to you can limit Access to Web API to Specific HTTP Verb?
What is the difference between runtime version and version?
What is autopost?
When would you set this property to false?
Can u able to get the xml document in crystal report if yes how its possible
What is shadowing?
What is active web pages?
i develop a web application and i gave security setting i.e autherization and athentication now it work properly on my local system , now question is ,is this security setting ie autherization and athentication which i gave in web.config will it be enough strong to secure my application on internet or i have to use some 3rd party tool or software to get security .if yes --how ? if no--what is the alternate?
What are ASP.NET Web Forms? How is this technology different than what is available though ASP (1.0-3.0)?
Is it necessary to undertsand these events of an ASPX page execute. Explain its importantance?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)