DatStat Illume 4.5 SDK Class Reference

HookContext.GetTextHtmlContent Method 

Returns the html content of a named survey Text/HTML object.

public string GetTextHtmlContent(
   String textHtmlObjectName
);

Parameters

textHtmlObjectName
The friendly name of a survey Text/HTML object.

Return Value

The content of the named Text/HTML object.

Remarks

This can be useful in various hooks like an EndPageContent hook. You can store your content for different conditions in different Text/HTML objects in your survey and mark those objects as “Never Shown”. You can then grab and return the content of the appropriate object when your EndPageContent hook runs to display that content to the user. This is desireable, because these Text/HTML objects will also get translated to different languages when the survey as a whole translated mitigating the need to change your hooks for every language thereby keeping them language independent.

Any pipes in the content of the Text/HTML object will be properly replaced.

See Also

HookContext Class | DatStat.Collector Namespace