Visual InterDev

endPageContent Method

See Also      Applies To

Ends page processing that has been started by the startPageContent method. Available only in server script.

Syntax

object.endPageContent()

Parameters

object

A PageObject script object.

Remarks

The endPageContent method declares the end of the client document content generated by an ASP page.

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("thisPage_Error") == 57)
   {
      startPageContent();
      response.write "Error 57: Please call Helpdesk.";
      endPageContent();
   }
}