When the client requests An ASPX file for the first time, on the server side, CSC or vbc first associates the aspx file. CS is compiled into a DLL, and then the DLL file is run, the HTML drawn is returned to the client, and then the compiled DLL is directly called for future access. Save the DLL file in the directory % WinDir % \ microsoft. net \ framework \ <Framework version> \ temporary ASP. Net files \ $ yourwebappname $ \ random number. In this directory, we find that each compiled CS file will generate a series of files respectively. If the file name is index. aspx, it will generate the following file:
Index. aspx. c6be2b85. XML, which contains the following content:
<Preserve assem = "ic4c67s _" type = "ASP. index_aspx" hash = "48be2af831321372">
<Filedep name = "C: \ Inetpub \ wwwroot \ unicomjx \ workflow \ bin \ workflow. dll"/>
<Filedep name = "C: \ Inetpub \ wwwroot \ unicomjx \ workflow \ bin \ microsoft. Web. UI. webcontrols. dll"/>
<Filedep name = "C: \ Inetpub \ wwwroot \ unicomjx \ workflow \ officethingmanage \ index. aspx"/>
</Preserve>
Assem attribute indicates the prefix of the file name generated during compilation
Filedep contains the ing between the file name generated during compilation and the aspx file name, And the DLL referenced by the file;
Ic4c67s _. PDB: including the auxiliary debugging information and single-step debugging Code
Ic4c67s _. CS: This file contains the following content (Note: some code is omitted)
Public class index_aspx: twoa. Module. tool. index, system. Web. sessionstate. irequiressessionstate
{
Public index_aspx (){
System. Collections. arraylist dependencies;
If (Asp. index_aspx. _ initialized = false )){
ASP. index_aspx. _ stringresource = system. Web. UI. templatecontrol. readstringresource (typeof (Asp. index_aspx ));
Dependencies = new system. Collections. arraylist ();
Dependencies. Add ("C: \ Inetpub \ wwwroot \ unicomjx \ workflow \ officethingmanage \ index. aspx ");
ASP. index_aspx. _ filedependencies = dependencies;
ASP. index_aspx. _ initialized = true;
}
This. server. scripttimeout = 30000000;
}
Protected override void frameworkinitialize (){
Setstringresourcepointer (Asp. index_aspx. _ stringresource, 2295 );
This. _ buildcontroltree (this );
This. filedependencies = ASP. index_aspx. _ filedependencies;
This. enableviewstatemac = true;
}
}
Through the above Code, we find that class index_aspx inherits twoa. module. tool. index (Aspx. CS page class). In this class, initialize custom attributes or objects to make up the index. ASPX page
To the control set tree to initialize the child control.
Ic4c67s _. cmdline: compile the relevant parameters of the file.
Ic4c67s _. dll: Initialize the page
Ic4c67s _. Err: contains information generated when a compilation error occurs.
Ic4c67s _. Out: contains some output information after the compiled command is executed.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service