Dynamicweb 8 Documentation
LoadTemplate Method
Example 

The path to the Template file relative to the /Files/Templates/ folder.
Loads a Template file into the object from disk specified by path parameter.
Syntax
'Declaration
 
Public Sub LoadTemplate( _ 
   ByVal path As String _ 
) 
public void LoadTemplate( 
   string path 
)

Parameters

path
The path to the Template file relative to the /Files/Templates/ folder.
Remarks
Usually used with the contructor of the Template object. See the Template reference for a full example. Use Html property to load markup from a string.
Example
Loading a template file into the template object
'Create a new Template object
Dim NewsTemplate As New Template
'Initialize and set the Path paramenter
Dim strNewTemplatePath as String = "News/NewsElement.html"
'Load the The template file
NewsTemplate.LoadTemplate(strNewTemplatePath)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Template Class
Template Members

Send Feedback