Custom Search

Friday, March 8, 2013

CODE EXECUTION PROCESS IN ASP.NET


CODE EXECUTION PROCESS IN ASP.NET



STEP 1: Client sends request for the required file to the IIS (Webserver).
STEP 2: IIS will locate the requested file.
STEP 3: If requested file is found, IIS will submit that to ISAPI.dll
     ISAPI.dll is known as ASPX Engine.
    ISAPI means Internet Services Application Programming Interface.
STEP 4: ISAPI.dll will generate a Page Class file, by separating Client side code, Server side code & by adding required methods to execute the server side code.
STEP 5: This Page Class is submitted to Compilers (In case of pre-Compilation is not done).
STEP 6: Compilers will compile the Source Code & will generate MSIL code.
STEP 7: MSIL code will be submitted to CLR.
    CLR will perform 3 tasks here,
1.     Instantiation: Creates object to the respective Page Class
2.     Processing: Executes the Result/Code
3.     Rendering: Converts the Server side code into Client Understandable format (i.e., HTML and JAVASCRIPT).
STEP 8: CLR will generate complete Execution Result.
STEP 9: Execution Result will be delivered to IIS.
STEP 10: IIS will deliver the result to CLIENT.
Once the Result is delivered to the client, The Object at the Server will be destroyed.

No comments:

Post a Comment