We give an URL to an aspx page in the browser address bar and press enter. What happens next? We get the response in terms of rendered HTML but how?
- We are requesting something from the browser, which means indirectly we are requesting something from the Web Server, that means IIS. IIS, based on the file extension, decides which ISAPI extension can serve the request.
And in case of ASP.Net (.aspx) it will be aspnet_isapi_dll so the request is passed to it for processing.
- When the first request comes to the website,
an application domain is created by the ApplicationManager class where exactly the website runs, and which creates an isolation between 2 web applications.
Within the application domain an instance of the HostingEnvironment class is created which provides access information about the application such as the name of the folder where the application is stored.
- Next ASP.Net creates core objects like HttpContext, HttpRequest,HttpResponse.
- Finally the application starts by creating an instance of the HttpApplication Class (which can be reused for multiple requests to maximize performance).
0 comments:
Post a Comment