What is the difference between website and webapplication in ASP. NET?

Source: Internet
Author: User

I have been using website for website development before, but I have heard that the best webapplication is used for projects at work. Both of them can be used for web development.ProgramBut I still cannot tell the difference between them. I checked the blog and found a piece of "sashboard ".ArticleThe analysis is good. The content is as follows:

1. Intuitive difference: For each ASPX page file, webapplication adds a designer. CS file to the corresponding CS file.

2. Advantages and Disadvantages:

advantages of the webapplication programming model:
● 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.
● generated Assembly
Website: generate a random Assembly 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
● You can split your website into multiple projects for convenient management. It is suitable for large-scale project development.
● A file can be excluded from the project and Source Code management
● support for vsts team build to facilitate daily building
● more powerful Code check function, the check policy is controlled by source code
● you can perform required processing before and after compilation
● strong resource class support for app_globalresources
● 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, which can make the error part irrelevant to the used part
● An assembly can be generated on each page.
● A directory can be processed as a web application, and files can be directly copied and published without project files
● You can also compile the page into a set of programs.

Conclusion: large websites (or projects) are more suitable for webapplication projects and small websites are more suitable for website projects.

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.