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
Explain the concept of event bubbling in ASP.NET?
How can we apply themes to an asp.net application?
What is application in asp net?
List the events in page life cycle.
Hello, Using Visual Studio 2005 (VB) I am working to create a Web Site implementing the following: Within a gridView I have placed a dropdownlist control with a DataSourceID="SDSLkupList". SDSLkupList is a sqlDataSource used to store a lookup list for dropdownlist translation from ID to text. SDSLkupList contains the translation text and other fields related to the dropdown selection ID. (Thought it would be efficient to get everything at the same time.) I would like to provide the user the ability to select from the dropdownlist and, based on the selection, use labels to list related columns stored on the SDSLkupList in separate gridView columns. I have read that SqlDataSources are not meant to be used for individual controls. Since SDSLkupList contains all related information, is there a way to do a find using the dropdownlist selectedValue? (I was not able to discover one.) Otherwise, what should I use? It would need to set the labels on the gridView DataRowBound event as well as the SelectedIndexChanged events. Has anyone done this? Any help would be appreciated. Thanks in Advance. Neal
If we remove web.config or machine.config from the application then, is this application will works?
How is it possible for .NET to support many languages?
Why do you use the app_code folder in asp.net?
What are the memory-mapped files?
Explain the difference between web user control and web custom control?
Which method is used to perform all validation at the page level?
How does viewstate work?
What is the difference between login controls and forms authentication?
How many ways are there to maintain a state in .net? What is view state?
Explain the server control events of asp.net ?