Chapter 16 Working with VB .NET


Creating an ASP.NET with the wizard

You can create an ASP.NET with the wizard that will guide you through the creation of the component. The wizard is invoked from a class diagram. It is only available if the language is C# or VB.NET.

You can either create an ASP.NET without selecting any file object, or select a file object beforehand and start the wizard from the Tools menu.

You can also create several ASP.NET of the same type by selecting several file objects at the same time. The wizard will automatically create one ASP.NET per file object: the file objects you have selected in the class diagram become ASP.NET files.

The wizard for creation of an ASP.NET lets you define the following parameters:

Wizard page Description
Name Name of the ASP.NET component
Code Code of the ASP.NET component
TemplateContent Allows you to choose the default template of the ASP.NET file object. The TemplateContent is an extended attribute located in the Profile/Component/Criteria/ASP category of the C# and VB.NET object languages. If you do not modify the content of the file object, the default content remains (see the Contents tab of the file object property sheet).
All templates are available in the FileObject/Criteria/ASP/templates category of the current object language
Create symbol Creates a component symbol in the diagram specified beside the Create symbol In check box. If a component diagram already exists, you can select one from the list. You can also display the diagram properties by selecting the Properties tool

Steps To create an ASP.NET with the wizard:

  1. Select Tools→Create ASP from a class diagram.

    The Active Server Page Wizard dialog box is displayed.
  2. Select a name and code for the ASP.NET component and click Next.
  3. Select an ASP.NET template and click Next.
  4. At the end of the wizard, you have to define the creation of symbols.

When you have finished using the wizard, the following actions are executed:

For more information on artifact file objects, see the "File object properties" section, in the "Building Implementation Diagrams" chapter.

 


Copyright (C) 2007. Sybase Inc. All rights reserved.