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