ASP.NET Project Template

Topic updated 3-5-2007

Each Template Chain (or Template Set) normally contains only 1 Project Template. In this case, the ASP.NET Templates also contains 1 Project Template named “WebApplication Template”.

This Template is responsible of the following tasks:

Define WebServer technique, this will affect also on how the Project / Pages are run.
Define generic project information and Template Options

You can create a new ASP.NET project by clicking on the New Project icon: NewProject and then selecting "ASP.NET". The project Template screen will appear and the action balloon will ask you if you want to start the ASP.NET wizard.

The ASP.NET project is the root container for all items templates like configuration templates and Page templates. This project level template has the following user interface:

 

ProjectTemplateoptions

 

Project NameSpace

This Template option is important since it will affect the “organization” of the classes inside the project. By default the Project Namespace is calculated based on the Project Name (thus, in the project name changes this value also changes accordingly).

Like all AutoCalculated Template options , this option allows to specify your own value instead of the calculated one allowing more flexibility for the namespace.

Note: this namespace is the default/root namespace.

 

Each Template, for example the page Template (shown in image), can define a “nested” namespace (or sub namespace) that will be appended to this root one. Please read each Templates description to understand if they do have a specific Namespace Template Option.

 

Generation Dir

The directory in which the ASP.NET project structure will be generated / build.

 

Selected Bo-layer project.

This is the Bo layer project that is used by the ASP.NET project. The BO project needs to be open.

 

Clean Generation folder

Since an ASP.NET Application is template based it could happen that your target directory contains old pages (deleted maybe from your project but not from the file system..) clean on Clean Generation folder if you want to clean the folder.

 

Change Theme

Change the theme of the web site. Themes are stored in the distrib directory and are automatically copied to the generation directory. You can add your own themes to the selection dialog. See Themes topic.

 

WebServer Type

       According to the WebServer you choose you have different options.

 

       1. WebServer Cassini

       This is the default value and it’s interesting for developers since it can be used in most OS without requirements (like having IIS installed or being connected to a webserver, etc). Also Cassini is installed by the GenWise installation process.

       Please notice that IIS is not available in Windows XP Home for example, thus Cassini is the choice to use in this case.

 

       2. WebServer IIS

       This option requires the following extra settings :

       aspnet_webserveriis