ASNA Monarch Templates

The main purpose of a template is to define the default aspx content page layout for the Migration Agents when display files are imported into the solution. The template files are provided with the installation of ASNA Monarch Framework. The default templates are located in the installation default location, which is C:\Program Files (x86)\ASNA Monarch 80\Templates\DisplayFiles or C:\Program Files\ASNA Monarch 80\Templates\DisplayFiles.

The Templates used when your project is created will depend upon the type of project and the language being used; AVR, C#, or Visual Basic. There are four default aspx template files included with the installation that are listed below.

Template.aspx
This defines a standardized aspx display file content page that will be combined with the master page definition when the aspx is displayed, regardless of the project language.
Template.aspx.vr
This is the code-behind page for ASNA Visual RPG language projects.
Template.aspx.cs
This is the code-behind page for C# language projects.
Template.aspx.vb
This is the code-behind page for Visual Basic language projects.

Template.aspx

The following is a partial sample of the default Template.aspx file. Make special note of the ContentPlaceHolderID values as you will see them again in the Master pages and the display file aspx pages.

// section for header
<asp:Content ContentPlaceHolderID="HeaderPH" runat="server" />
</asp:Content>

 // section for function keys
<asp:Content ID="FileContent1" runat="server" ContentPlaceHolderID="FKeyPH">
   <div id="Div0">
      <mdf:ddsfile id="DdsFile1" runat="server" DisplayErrorMessages="False" BannerStyle="Vertical">
      </mdf:ddsfile
   </div>
</asp:Content>

// section for main page content 
<asp:Content ID="FileContent2" runat="server" ContentPlaceHolderID="CenPH">
   <div id="Div1">
      <mdf:ddsrecord id="DdsRecord1" style="POSITION:relative" runat="server" 
                      Height="64px" Width="712px" ms_positioning="GridLayout">
      </mdf:ddsrecord
   </div>
</asp:Content>

// section for messages 
<asp:Content ID="FileContent3" runat="server" ContentPlaceHolderID="MsgPH">
   <div id="Div2">
      <mdf:DdsMessagePanel ID="DdsMessagePanel1" style="POSITION:relative" runat="server" 
                      Height="64px" ms_positioning="GridLayout">
      </mdf:DdsMessagePanel
   </div>
</asp:Content>

// section outside the form for page script
<asp:Content ContentPlaceHolderID="PageScriptPH" runat="server" >
</asp:Content>

Always refer to the actual file which is located in the installation default location, C:\Program Files (x86)\ASNA Monarch 80\Templates\DisplayFiles or C:\Program Files\ASNA Monarch 80\Templates\DisplayFiles for the most current styles.

Next: ASNA Master Pages

Previous: ASNA Theme Components