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 |
How to write unmanaged code and how to identify whether the code is managed /unmanaged?
I am using a range validator and want to use dd mm yyyy format for accepting dates. I get a fairly generic "can't do that" type exception when I use this format for setting the minValue or maxValue properties for the range validator. How can I force it to accept my format?
How can we secure the data which is send from client side to server? Like the login id and paasword needs to be authenticated on the server but we cannot send it in plain text into the server.One more thing we are not using the SSL here.
Explain the life cycle of an ASP .NET page
2 Answers HCL, Surya Software,
What is new asp.net core?
How do you make your site SSL enabled ?
What is server side in asp.net?
Is it possible to use two versions of assembly at the same time?If possible explain with code?
You need to be able to retrieve data from DataSet object that has four DataTable objects. There are currently UniqueConstraint and ForeignKeyConstraint Object on the DataTable objects to enforce the data rules. You find that you can retrieve the data from the individual DataTable objects, but you are not able to retrieve the data from the combination of DataTable objects in a Parent/Child manner. What should you do to able to retrieve the data in a Parent/Child manner? a) Set the EnforceParentChild parameter of the DataSet to True. b) Set the EnforceRelation parameter of the Relations collection to True. c) Add DataRelation objects to the Relations Collection to make the DataSet present the data in Parent/Child manner. d) Add a primary key and a foreign key to each of the DataTable objects that should present the data in a Parent/Child manner.
what does membership class provide?
How many types are there session
Do you know about caching with the datasource controls?
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)