Test dotnet2.0 website generation

Source: Internet
Author: User

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.

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.