Dynamicweb.Rendering Namespace > Template Class > SetTag Method : SetTag(String,String,Boolean) Method |
true
the value is HTML encoded.
true
the value is HTML encoded.'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 <b>world!</b>", True) 'Return the parsed template with the value of MyTag html encoded. 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 <b>world!</b>", true); //Return the parsed template with the value of MyTag html encoded. 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