Precisely. Here's the way it happens (basically):
Inline code method
Source(s):
- ASPX with objects
- inline code (in same ASPX)
Design-time:
Steps:
- Write the ASPX file
Run-time:
Steps:
- Create temp
vb file from inline code
- Compile temp
vb file to temp DLL containing generic .net MSIL code
- JIT compile the ASPX into a temporary class (<pagename>_aspx) into CLR
- JIT compile the MSIL code (from DLL) into platform specific machine code into the CLR
- Run the code from the CLR
Code-behind method
Source(s):
- ASPX with objects
- Code-behind in *.
vb files
Design-time:
Steps:
- Write the files (*.AS?X, *.
vb)
- Compiled all *.
vb into MSIL DLL
Run-time:
Steps:
- JIT compile the ASPX into a temporary class (<pagename>_aspx) into CLR
- JIT compile the MSIL code (from DLL) into platform specific machine code into the CLR
- Run the code from the CLR
MSIL - MicroSoft Intermediate Language (the .Net generic code)
CLR - Common Language Runtime
JIT - Just In Time (basically, on request compiling)
I'm not sure what goes on with the ASPX. Whether it also gets compiled into a temp MSIL DLL, then JIT-ed into the CLR. I assume that's the case. Using either method, a temp class is created from the ASPX file, where it lives in the mystery of the .net black box.
Peter
------------------------------------------------------
Work smarter, not harder.