When we will request a webpage from the browser, it will create an instance of that requested Webpage, which generates HTML to response to the request, and posts it on the browser. After post, it destroys the instance of that Webpage.
Let’s say at client side the browser has an HTML, in that the user can enter some text in textboxes, can select some required options, and perform other tasks until it fires any postback event, such as button click event. This causes the browser to send the submitted data back to the server for event processing. When the server receives client request, it will create a new instance of the Webpage and it fills supplied data, and processes requested event by the client. As server finishes task, it posts the resulting HTML back to the browser and destroys the instance of the Webpage.
Asked In: Many Interviews |