RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseAdapterPageProducer.GetDefaultTemplate Method

Returns the default template that the page producer can use to generate content.

Pascal
function GetDefaultTemplate: string; virtual;
C++
virtual __fastcall AnsiString GetDefaultTemplate();

GetDefaultTemplate returns the default template that the page producer can use to generate its content. This template has the form:

<HTML>
<HEAD>
</HEAD>
<BODY>
<#STYLES> <#WARNINGS> <#SERVERSCRIPT>
</BODY>
</HTML>

TBaseAdapterPageProducer automatically handles the conversion of the HTML-transparent tags in the default template as follows: 

<#STYLES> - This tag is replaced by the stylesheet defined by the Styles or StylesFile property. 

<#WARNINGS> - This tag is replaced with design time warnings that indicate possible problems with the hierarchy of web items. 

<#SERVERSCRIPT> - This tag is replaced with generated HTML/JavaScript based on the hierarchy of Web items. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!