What happens when aspx page is requested from browser ?, DOT NET Programming

The steps that occur when we request a ASPX page are as follows:-

1) The browser sends the request to the webserver. Now  assume that the webserver at the other end is IIS.

2) Once the IIS receives the request he looks on which engine the request is served. Whenever I mean engine that means the DLL who can parse this page or compile and send a response back to the browser. Which request is to map is decided by the file extension of the page requested.

Depending on the file extension some mapping are as follows:

1) .aspx, for the ASP.NET Web pages,

2).asmx, for the ASP.NET Web services,

3).config, for the ASP.NET configuration files,

4).ashx, for the custom ASP.NET HTTP handlers

5).rem, for remoting the resources

6)Etc

You also can configure the extension mapping to which engine can route by using the IIS engine.

1833_ASPX page.png

For example an ASP page will be sent to the old classic ASP.DLL to compile. While the .ASPX pages will be routed to the ASP.NET engine for compilation.

7) We will see how an ASP.NET page that is ASPX pages generation sequence occurs. Once IIS passes the Request to the ASP.NET engine page has to go through two section HTTP module section and HTTP handler section. Both of this section has their own work to be completed in order that the page is properly compiled and sent to the IIS. The HTTP modules inspect the incoming request and depending on that they can change their internal workflow of the request. The HTTP handler actually compiles the page and generates the output. If you see your machine.config file you will see the following section of HTTP modules.

d name="OutputCache" type="System.Web.Caching.OutputCacheModule" />

d name="Session" type="System.Web.SessionState.SessionStateModule" />

d name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />

d name="PassportAuthentication" type="System.Web.Security.PassportAuthenticationModule" />

d name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />

d name="FileAuthorization" type="System.Web.Security.FileAuthorizationModule" />

d name="ErrorHandlerModule" type="System.Web.Mobile.ErrorHandlerModule, System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /

> 

The mapping above will show which functionality is to be handled by which Namespace. For e.g. FormsAthuentication is handled by "System.Web. Security.FormsAuthenticationModule". If you see at the web.config section HTTP module is where the authentication and authorization happens.

d verb="*" path="*.vjsproj" type="System.Web.HttpForbiddenHandler" />

d verb="*" path="*.java" type="System.Web.HttpForbiddenHandler" />

d verb="*" path="*.jsl" type="System.Web.HttpForbiddenHandler" />

d verb="*" path="trace.axd" type="System.Web.Handlers.TraceHandler" />

d verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory" />

d verb="*" path="*.ashx" type="System.Web.UI.SimpleHandlerFactory" />

...

Depending on the File extension handler it decides which Namespace will generate the output. e.g.  All .ASPX extension files will be compiled by the System.Web.UI.PageHandlerFactory

Once the file is done it will be send back again to the HTTP modules and from there to IIS and then to the browser.

 698_IIS flow.png

 Figure:-IIS flow from various sections.

Posted Date: 9/22/2012 6:50:08 AM | Location : United States







Related Discussions:- What happens when aspx page is requested from browser ?, Assignment Help, Ask Question on What happens when aspx page is requested from browser ?, Get Answer, Expert's Help, What happens when aspx page is requested from browser ? Discussions

Write discussion on What happens when aspx page is requested from browser ?
Your posts are moderated
Related Questions
I have a page that I require a few pieces of data to be pulled out of. The page is such that it needs interaction; there is a little bit of data entry to get the needed data, and t

I need a Web Application UI Modernization - Preliminary Technology Assessment We are seeking to overhaul a 10-year old enterprise application, CRM-related as well as web-based t

What is the difference between Convert.toString and .toString() method To know the difference between Convert.toString and .toString() see the below code : int i =0; Mess

What is a monitor object? Monitor objects are used to ensure that a block of code runs without being interrupted by code running on other threads. In other words, code in other

VB.NET Questions Project Description: Need help to solve questions of VB.NET Skills required: .NET, Software Development, C# Programming, Visual Basic, Windows Deskt

What are the features of ADO.Net ?  ADO.NET features: 1. Disconnected Data Architecture 2. Data cached in Datasets 3. Data transfer in XML format 4. Interaction wit

Question: (a) The ObjectDataSource control is an alternative design approach to using AccessDataSource or SqlDataSource controls. Explain and illustrate how an ObjectDataSourc

I need help to develop website using html5, responsive design and jquery.I need e commerce website flike alma meter and spreadshirtHours Skills required: .NET, HTML, Graphic

What are basic methods of Data adapter? The three most commonly used methods of Dataadapter are as follows:- 1)Fill :- It Executes the SelectCommand to fill the DataSet ob

.NET aplication with vBulletin paid subscribtion Project Description: I have an application in .net it's a simple client i have sheltered with net seal license system for aut