RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseInetXPageProducer.ContentFromStream Method

Returns the content produced in response to input read from a stream.

Pascal
function ContentFromStream(InStream: TStream): string; override;
C++
virtual __fastcall AnsiString ContentFromStream(TStream InStream);

Call ContentFromStream to retrieve the content produced by the content producer based on the information provided by the Stream parameter. ContentFromStream  

 

  1. Generates an OnBeforeGetContent event. 

  2. Translates the HTML template that is the value of Stream, using information produced by the items listed in the WebPageItems property. 

  3. Generates an OnAfterGetContent event. 

  4. Returns the HTML produced in step 2.

 

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