WriteTemplate Method

       

Processes an HTML template attached to a WebItem object and returns it to the browser.

Syntax

object.WriteTemplate(Template As Variant)

Part Description
object An object expression that evaluates to an object in the Applies To list.
Template Optional. Indicates the template to return to the browser.

Remarks

Use this method to send the HTML template to the client. The ReplaceToken event is fired during processing of a template if that template contains replacement tokens. The template is written to the Response object.

The WriteTemplate method does not fire the Respond event for the associated WebItem. It is recommended that the WriteTemplate method only be called from within the Respond event of the WebItem and that the Respond event be triggered by setting the NextItem property.