Dynamicweb 8 Documentation
Html Property
Example 

Gets or sets the HTML of the template. Usually loaded when instanciated New Template("MyFolder/MyTemplate.html").
Syntax
'Declaration
 
Public Property Html As String
public string Html {get; set;}

Property Value

The HTML of a template.
Example
Load template html from stringLoad template html from string
Dim t As New Template
t.Html = "<h1><!--@MyTag--></h1>"
t.SetTag("MyTag", "Hello world!")
Return t.Output()
Template t = new Template();
t.Html = "<h1><!--@MyTag--></h1>";
t.SetTag("MyTag", "Hello world!");
return t.Output();
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