ASP.NET Application Life Cycle
The ASP.NET Application Life cycle has the following stages:
• First,A User makes a request for accessing application resource, such as a page then the Browser sends this request to the web server.
• Second,A unified pipeline receives the first request and the following events will take place:
An object of the ApplicationManager class is created.
An object of the HostingEnvironment class is created to provide information regarding the resources.
Top level items in the application are compiled.
• Third,Response objects and the application objects: HttpContext, HttpRequest and HttpResponse are created and initialized.
• Fourth,An instance of the HttpApplication object is created and assigned to the request then the request is processed by the HttpApplication class. after that some different events are raised by this class for processing the request.