Comparison between ASP. NET web applications and ASP. NET websites

Source: Internet
Author: User

● The website Compilation speed is fast and the incremental compilation mode is used. This part will be incrementally compiled only after the file is modified.
● GeneratedProgramSet Website: generate a random set name. You must use the plug-in webdeployment to generate a single assembly webapplication: You can specify a website project to generate a single assembly because it is an independent assembly, therefore, like other projects, you can specify the application Assembly name, version, output location, and other information.
● The website can be split into multiple projects for convenient management
● It can be in and out of the projectSource codeExclude a file from management
● Support for vsts team build to facilitate daily building
● More powerfulCodeCheck function, and check policy is controlled by source code
● You can perform prescribed processing before and after compilation
● Strong resource class support for app_globalresources (I have not learned about it on the Internet)
● Directly upgrade a large system built using vs2003
Advantages of the website programming model:
● Dynamically compile the page to see the effect immediately without compiling the entire site (main advantages)
● Same as above, this can make the error part irrelevant to the part used (it can be required that the part can be checked in only after compilation is passed)
● One assembly can be generated on each page (this method is not used)
● A directory can be processed as a web application, and files can be directly copied and published without project files (it doesn't matter, it is only suitable for small sites)
● You can also compile the page into the assembly (it should not be used, and webapplication can also be implemented through the webdeployment plug-in)
Mutual conversion between the two programming models:
Vs2005 SP1 has a built-in Conversion Program, which can easily switch from website to webapplication by copying files and right-clicking and executing "convert to Web application. No dedicated reverse Conversion Tool is found, but after comparison, it is also very easy to convert.
Delete all *. designer. CS will *. aspx ,*. ascx ,*. codebehind = "filelist. aspx. CS "batch Replace with codefile =" filelist. aspx. CS"

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.