In net2, the following tests are performed:
1. Choose "new"> "website"
2. Create the default. aspx page. The type is page andCodeSeparated. The corresponding class is "_ default", under namespace "T1.
3. Create the default2.aspx page. The type is that the page is not separated from the code.
4. Create a class t1.class1. The editor will put class. CS under app_code.
Then, click "generate"> Publish Website ". There are three options:
This pre-compiled site can be updated:
Use a fixed name and a single pageProgramSet
The third is not discussed for the moment.
1. If neither of the two options is selected, the result is:
The content of default. aspx default2.aspx is "this is a mark file generated by the Pre-compilation tool and should not be deleted !", However, deletion seems like the system can run.
The bin directory is:
Default. aspx. cdcab7d2. Compiled
Default2.aspx. cdcab7d2. Compiled
App_web_17gw7ypg.dll
App_code.dll
App_code.compiled
These compiled files cannot be deleted. It cannot be run after deletion.
2. Select "Allow to update this pre-compiled site". The result is:
The corresponding class in default. aspx is changed to inherits = "T1. _ default, app_web_evdak2ds"
Default2.aspx content not changed
The bin directory is:
App_web_evdak2ds.dll
App_code.dll
App_code.compiled
The app_code.compiled file can be deleted. The operation is not affected after deletion.
3. Select "use fixed name and single-page assembly" only. The same two options are not selected.
4. Select both options
The corresponding class in default. aspx is changed to inherits = "T1. _ default, app_web_default.aspx.cdcab7d2"
Default2.aspx content not changed
The bin directory is:
App_web_default.aspx.cdcab7d2.dll
App_code.dll
App_code.compiled
The app_code.compiled file can be deleted. The operation is not affected after deletion.