Although Visual COBOL includes templates for creating COBOL Web Sites, Micro Focus recommends that you use the COBOL Web Application templates in Visual Studio to create applications for the Web since they enable you to use all of the Web functionality provided by the framework as well as take advantage of using a project. You configure Web Applications from the project properties. For Web Sites you specify configuration settings in the Web.config file.
The following sections summarize the two different ways of creating applications for the Web.
The recommended way to create Web applications is to use the Web Application templates (File > New > Project, and click Web under COBOL templates) as they give you control over your source code that is preferable to using the Web Site templates.
The main characteristics of using a Web Application are:
Using a project file also means Visual Studio adds namespaces to pages, classes and controls.
To create a Web Site, use a Web Site project - click File > New > Web Site, and then click the COBOL category.
The main characteristics of the Web Site project are:
For a more detailed comparison between Web Application and Web Site projects, check Microsoft's MSDN.