Wizard

Topic updated 17-10-2007

The ASP.NET 2.0 Templates provide a Wizard that helps to set up projects quickly. The Wizard adds Page Templates by deriving from the entities exposed by a BO Layer project, creating two types of pages:

Browse pages containing Browse Templates. These are named after the Datastore Entity with "Browse" appended.
Form pages containing Form Templates. These are named after the Datastore Entity with "Form" appended.

 

If the Wizard creates both types of pages (it does so by default), the Browse Page and Form Page based on the same entity are configured to work together by their Action Templates. For example: the Change Action will link from the Browse Page to the Form Page, and the Save Action will link from the Form Page back to the Browse Page.

 

If you're starting a project from scratch, using the ASP.NET Quickstart may be even faster then using the Wizard.

Basic usage of the Wizard is also explained in the Building Your First Application chapter, in the Run the Project Wizard topic.

 

Starting the Wizard

There are two ways to access the Wizard for the ASP.NET Templates.

1.When creating a new project an Action Balloon appears, asking you to run the Project Wizard. Click Execute to run it. This Action will

aspnet_accesswizard1

 

2.You can also run the Wizard from the context menu of the ASP.NET project. Right-click the ASP.NET project item in the Project Explorer and choose Wizard.

aspnet_accesswizard2

 

Using the Wizard multiple times

You can run the Wizard multiple times on one project. This can be useful when you build up a project in steps, for example when first creating pages for one set of entities, then for another set of entities. By default the Wizard does not replace existing project items.

Depending on the Override existing Project Items setting (see Wizard General Options), existing pages can be replaced. This option to replace existing  pages is turned off by default. Turn it on only if you are sure that you want to have some items replaced.

 

Wizard options

The default options of the Wizard are generally good to use to just set up a couple of basic pages. The Wizard has a lot of options that allow you to tweak its behaviour. When used wisely, this can save you a lot of template configuration work that would otherwise have to be done manually.

Wizard General Options

Wizard DataSource Options