What is Difference between Callbacks and Postback in ASP.NET?

Answers were Sorted based on User's Feedback



What is Difference between Callbacks and Postback in ASP.NET?..

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

What is Difference between Callbacks and Postback in ASP.NET?..

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

What is Difference between Callbacks and Postback in ASP.NET?..

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

What is Difference between Callbacks and Postback in ASP.NET?..

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

What is Difference between Callbacks and Postback in ASP.NET?..

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

What is Difference between Callbacks and Postback in ASP.NET?..

Answer / mani maran

call back does not refresh the whole page...

Is This Answer Correct ?    4 Yes 0 No

What is Difference between Callbacks and Postback in ASP.NET?..

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

What is Difference between Callbacks and Postback in ASP.NET?..

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

What is Difference between Callbacks and Postback in ASP.NET?..

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

What is Difference between Callbacks and Postback in ASP.NET?..

Answer / kilorf

The Above all commands are wrong.Donot follow These.

Is This Answer Correct ?    12 Yes 33 No

Post New Answer

More ASP.NET Interview Questions

How to write unmanaged code and how to identify whether the code is managed /unmanaged?

4 Answers   Accenture,


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?

1 Answers   FutureTech,


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.

1 Answers   Microsoft,


Explain the life cycle of an ASP .NET page

2 Answers   HCL, Surya Software,


What is new asp.net core?

1 Answers  


How do you make your site SSL enabled ?

3 Answers   Satyam,


What is server side in asp.net?

1 Answers  


Is it possible to use two versions of assembly at the same time?If possible explain with code?

3 Answers   Tech Mahindra,


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.

1 Answers   Syntax Softtech,


what does membership class provide?

1 Answers  


How many types are there session

5 Answers   TCS,


Do you know about caching with the datasource controls?

1 Answers  


Categories