Web-Page responses by PostBack, AutoPostBack, CrossPostBack, CallBack.

Web-Response
Web-Response @Image courtesy of rajcreationzs / FreeDigitalPhotos.net

Web-Page responses by PostBack, AutoPostBack, CrossPostBack, CallBack.

Welcome to CodeSpread!

It is difficult to find a site on the internet which does not respond to user’s action. By user’s action, i mean to say, clicking on a button, selecting something from a list, navigation links. These are the actions which make the site to respond.

The process is as follows- When you click on a button of the web-page, the site gets connected to the server and calls the appropriate action at server which either introduces some changes to the original web-page or calls a new web-page. As a result,a modified web-page or new web-page is rendered back to the user. This whole process is referred  to as Postback.

In real life, if we go to a bank to withdraw money, we have to fill a simple withdrawal form and give it to the cashier, cashier will write our waiting number on the top and give it back assuming it is correctly filled. This scenario can easily be related to a post back as submitting the form is a user action and in reply to that,cashier modifies the original form by writing a waiting number.

Lets see AutoPostBack, Just we have added the term ‘auto’ here with the postback and made this process partially automatic. How automatic? because there no button clicks required to initiate the postback process. Why partially? because for this process also user intervention is required, although we are saved from any button clicks but still we have to make a selection from any selection list provided. for ex.

List item,ListControl,BulletedList,CheckBoxList,DropDownList,ListBox,RadioButtonList,CheckBox

CrossPagePostBack is also a variant of PostBack . Here the original page is not modified and rendered to user on postback but user is served with a new page, still the values of old page will remain available to the new page. If in the same bank example, we apply for a loan then we have to go to each department and fill out some form in a serial manner. Each next department will already be having our information from the previous department. This is crosspageposting.

Callback is the minified version of postback where only part of the page is sent back and received from the server. This process is initiated by our friend Javascript. Lets see, while roaming between different departments of bank for loan, you want to update something in your application then there is no need to again go back to each department for updation, just go to records department and get information updated in master record.

It was difficult to find a real time scenario for postback, I request you all to help me in improving this article.

Author: hershey

A passion for knowledge drives me to do programming, A passion for programming drives me to create something different, A passion for creation drives me to spread the knowledge.

Share This Post On

0 Comments

  1. nice superb explaination

    Post a Reply
  2. thanks for the tutorial
    I am having a problem.
    The feature “Create SQL server database” isn’t available , I can’t select it.
    Can you help, please ?

    Post a Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

More from CodeSpread:

  • Agile Encounters UnpredictabilityAgile Encounters UnpredictabilityWhat is Agile? Wikipedia says “Agile software development is a group of software development methods based on iterative and incremental development, where requirements and solutions evolve through...
  • C#: My experience with const keywordC#: My experience with const keywordThere are numerous post on internet about 'what is const keyword in .net' or 'what is the difference between const keyword and read only' and I must say many might have already mugged it up like me...
  • Time Out: Not a Technical postTime Out: Not a Technical postTaking my time-out from technical world for once and sharing a regular joke in the form of  this comic with you. There is no harm in showing funny side also sometimes. wat say!!
  • C# Code to send a MailC# Code to send a MailWhile working in a project, we always neglect the importance of the code which we have written many times and now end up in copy pasting the code from old projects. Lately, I saw a request in fo...
  • Useful ‘ref’ and ‘out’ parametersUseful ‘ref’ and ‘out’ parameters It took me some time to realize the real potential of ref and out keywords, till the time I experience a condition which could only be simplified by implementing ref and out keyword. Lets st...
  • Note: GZipStreamNote: GZipStreamA short note from my experience: From the name itself you can at least make a guess about the functionality of the GZipStream class(present under: System.IO.Compression). Yes..your guess is abso...
  • 20 Dec: Must Read Codes [6-10]20 Dec: Must Read Codes [6-10]We are sharing few must read codes/concepts which are required now and then. Each of these codereads doesn’t require a full length descriptive article so combining them into groups of five. CodeRe...
  • Don’t Mess with App_OfflineDon’t Mess with App_OfflineOne of the most useful features of ASP.NET is the "App_Offline.htm" . It provides a much easy way to make the ASP.NET application offline while we do our modifications on the site. How we do it? ...