Creating an ASP .Net Web Application

Note: If you are using an AB Suite data source type, do not follow the instructions in this topic. Instead, refer to Creating Web Forms Application Projects for the correct procedure for that data source type.

An ASP.Net Web Application uses Creating an ASP.Net Web Application (Terminal Screen Appearance) and is intended for users who will access your application by running a standard Web browser, typically from a desktop or laptop computer.

This particular project type is well suited to all data source types, except AB Suite. However, if any of the following conditions apply to your project, you may prefer to use a presentation type which preserves all of the static text from the original terminal screen or form:

Refer to Modifying Client Messages if any of these cases describe your project.

An ASP.Net Web Application uses the value of the Label property associated with each field of the client message to generate a text label on the Web page. If you want to modify the default label values that ePortal generates, modify the Label property for a field in the client (or server) message. Refer to Multi-Targeting Issues.

Procedure 1 - Adding the ePortal Presentation Project

  1. In Solution Explorer, right-click the solution node, click Add, click New Project....

  2. In the Create a new project dialog box, do the following:

    Notes:

    • Select C# or All Languages from the Language list.

    • Select Windows or All Platforms from the Platform list.

    The ePortal templates are not displayed if other values are selected.

    1. Select ePortal Previous Versions from the Project Type list.

      The ePortal Previous Versions templates are displayed.

    2. Do any one of the following to select the template:

      • From the templates list, select ASP.Net Web Application, and then click Next.

      • Enter ASP.Net Web Application in the search option, select the template from the search result, and then click Next.

  3. Optionally, change the Project name, Location, and Framework, and click Create.

    Notes:

    • If you do not provide a particular value for these options, a default value is selected.

    • For information on selecting the .NET version, refer to Multi-Targeting Issues.

  4. If a master page should be applied when generating new .aspx pages, select UseMasterPages and set the value to True on the Presentation Generation Options dialog. Refer to Modifying the Master Page for information on master pages.

  5. Review the remaining property values. These values dictate the behavior of the Web pages when they are created.

  6. Make any necessary changes on the Presentation Generation Options dialog; refer to Presentation Generation Properties for a Web Browser Project for information about the properties.

  7. Click OK. The presentation project appears in Solution Explorer.

Procedure 2 – Controlling the Look and Feel

Once you have created your presentation project, you can control the look and feel of your Web pages.  Review the topics at Controlling the Look and Feel of Your Presentation.

Building the Solution

Note: Before building your solution, review the topics at Controlling the Look and Feel of Your Presentation. Some of these steps are best performed before you build your presentation project and some steps cannot be completed until after you have built your presentation project.

In Solution Explorer, right-click the solution node, and then click Build Solution. The presentation project is populated with appropriate items. Refer to Building Your ePortal Solution for more information.

Procedure 3 - Controlling the Behavior

Once you have built your presentation project, you can control the runtime behavior of your application. Refer to Controlling the Runtime Behavior of Your Presentation for more information.

Procedure 4 - Testing

Refer to Testing a Presentation Project

Next Step

Go to Staging a Presentation Project.