The difference between WebApplication and website

Source: Internet
Author: User

Description

When we create a new site in VS2010, click on the menu: file-New, there are two choices for projects and sites below, the default name is WebApplication and website when you create a new one.

difference

1.WebApplication  

WebApplication after changing the code must restart the Web page to see the effect, it has a namespace space name, after compiling a DLL will be formed. You can also see the effect immediately after changing the code and clicking Build Solution on the Build menu. No need to restart the browser. It is generated before the changes are generated in the DLL.

2.Website

Website after changing the code without restarting the Web page, it does not use the namespace space name, mainly for the convenience of the user from the ASP to turn over. Each ASP page is turned into a DLL. That is, multiple DLLs. website is to check whether CS is changed every time the page is accessed, and if it changes, it will be automatically recompiled, so it will be effective immediately after each modification.

recommended by the store chief

they differ in the use of different, technically the same, small-scale development can be used website, large-scale development recommended with WebApplication.  

PS:When you build a project, you have multiple pages, you can set a specific page as the startup item in the Web options for the project properties, or you can set the current page as the startup item, and if the current page is a startup item, the currently open page is the current page.

The difference between WebApplication and website

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.