Custom Search

Friday, March 8, 2013

CODE EXECUTION PROCESS IN ASP.NET


CODE EXECUTION PROCESS IN ASP.NET



STEP 1Client sends request for the required file to the IIS (Webserver).
STEP 2IIS 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 4ISAPI.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 6Compilers will compile the Source Code & will generate MSIL code.
STEP 7MSIL 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 8CLR will generate complete Execution Result.
STEP 9Execution Result will be delivered to IIS.
STEP 10IIS 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