Dynamicweb.Rendering Namespace > Template Class > SetTag Method : SetTag(String,String) Method |
'Load a template from /Files/Templates/MyFolder/MyTemplate.html Dim t As New Template("MyFolder/MyTemplate.html") 'Set a tag value t.SetTag("MyTag", "Hello world!") 'Return the parsed template Return t.Output
//Load a template from /Files/Templates/MyFolder/MyTemplate.html Rendering.Template t = new Template("MyFolder/MyTemplate.html"); //Set a tag value t.SetTag("MyTag", "Hello world!"); //Return the parsed template return t.Output();
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