Tuesday, January 13, 2009

Processing of PageRequests

When the first request comes, the top-level items even the application code ,if required, residing in App_code folder is compiled and an instance of Application Manager ,i.e Application domain is created . By virtue of this application domain , the isolation is provided between global variables of different applications. Asp.Net also creates an instance of Hosting environment class in the application domain. After this the application objects such as HttpContext, HttpRequest, and HttpResponse are created and initialized.

The HttpContext class contains objects that are particular to the current application request,i.e. HttpRequest and HttpResponse.

The HttpRequest object contains information about the current request, i.e. cookies and browser information.

The HttpResponse object contains the response that is sent to the client, which includes all the rendered output and cookies.

The request is then processed by the HttpApplication pipeline and after the processing the ASP.NET page life cycle is run.

No comments:

 
Google