RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseAdapterPageProducer.HandleScriptTag Method

Translates HTML-transparent tags for an associated server-side script.

Pascal
function HandleScriptTag(const TagString: string; TagParams: TStrings; var ReplaceString: string): Boolean; override;
C++
virtual __fastcall Boolean HandleScriptTag(const AnsiString TagString, TStrings TagParams, AnsiString ReplaceString);

When a server-side script encounters an HTML-transparent tag, it calls HandleScriptTag to allow the page producer to translate that tag for it. HandleScriptTag translates the <#SERVERSCRIPT> tag, supplying the content produced by the hierarchy of Web items that is the value of the WebPageItems property. 

TagString is tag name of the HTML-transparent tag. This is the first string that follows the pound sign (#). 

TagParams gives the parameter portion of the HTML-transparent tag. Each string in the TStrings object has the form ParamName=Value. 

ReplaceText returns the translated string that should replace the HTML-transparent tag. 

HandleScriptTag returns true if it can translate the tag (that is, if TagString is 'SERVERSCRIPT'). It returns false if TagString identifies any other type of tag. 

 

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