Modifying the Web Form Template

Notes:

 Caution

Deleting the .aspx file does not save changes made to any individual page. The Procedure below should be performed before you manually update your .aspx files.

Characteristics of a Web Form Template

The top and bottom sections of each page have common information, but the template information can be modified on each page.

Procedure - Creating the Content of the Web Form Template

  1. If a master page was not selected, a Web form template can be used to set basic look-and-feel characteristics for your presentation project.

  2. In Solution Explorer, expand the presentation node, expand the Pages, Resources, PGT, and BT nodes, and then double-click the WebFormTemplate.aspx file.

  3. Ensure that Design mode is selected. To change to design mode, click the Design button in the lower- left corner of the pane.

  4. Use the Toolbox functionality of Visual Studio to add and modify the contents of the template.

     Caution

    Ensure that the following code is not changed:

     <ePortal : ePortalGeneratedContent ID="EPortalGeneratedContent1" runat="server"
     Text="ePortal Generated Content"></ePortal : ePortalGeneratedContent>

  5. Save the file.

  6. If the Web form templates need to be used at run time, do the following:

    1. In Solution Explorer, expand the presentation node, expand the Pages, Resources, PGT, and RT nodes, and then double-click the RuntimeWebFormTemplate.aspx file.

    2. Repeat steps 2 through 4.