Declares the beginning of the client document content generated by an ASP page. Available only in server script.
Syntax
object.startPageContent()
Parameters
object
A PageObject script object.
Remarks
Use this method to pass text to the Response object for sending text to the browser. If you want to contain the stream of text that is sent to the browser, use the endPageContent method to end the stream.
It can be useful to call startPageContent from a navigate object or from a thisPage_onenter event handler.
Example
The startPageContent and endPageContent methods are useful for writing discrete blocks of text. These are useful when trapping errors, as in the following example.
function thisPage_onenter()
{
if (thisPage.getState("Error") == 57)
{
startPageContent();
resonse.write "Error 57: Please call Helpdesk.";
endPageContent();
}
}