Web Site or Web Application in ASP.NET

后端 未结 7 819
忘掉有多难
忘掉有多难 2020-12-10 22:09

Which Visual Studio template should be used for a ASP.NET web site, the Web Site template or the Project | Web Application template?

7条回答
  •  眼角桃花
    2020-12-10 22:50

    Both function and perform similarly, but still differ in following ways:

    Web application:

    • We can't include C# and VB pages in single web application.
    • We can set up dependencies between multiple projects.
    • Can not edit individual files after deployment without recompiling.
    • Right choice for enterprise environments where multiple developers work unitedly for creating, testing and deployment.

    Web site:

    • Can mix VB and C# page in single website.
    • Can not establish dependencies.
    • Edit individual files after deployment.
    • Right choice when one developer will responsible for creating and managing entire website.

提交回复
热议问题