Executes a Web Control Framework page by providing a physical path to the page allowing for parsing, compiling and running the page.

This method can be used to call any Web Control Framework Page from a standard wwProcess method. This allows control in scenarios where a single set of pages serve multiple applications for example.

*** Process Method
FUNCTION DoHelloworld

Note that you have to specify the physical path to the page and the page must exist. Web Connection parses out the path to the PRG file from the script page.

Please note that as an alternative to ExpandPage() you can also call any already parsed PRG Page classes directly which has the same result:

*** Process Method
FUNCTION DoHelloworld
   DO HelloWorld_page.prg

This approach is more efficient in terms of execution, but it requires that the page is already pre-parsed and so will not detect changes to the markup unless manually compiled.

o.ExpandPage(lcPhysicalPath, lnPageParseMode)


The physical path to the page. If not provided Request.GetPhysicalPath() is used.

The mode in which the page is parsed.

1 - Parse & Run 2 - Parse & Compile & Run 3 - Run only

If not provided defaults to Server.nPageParseMode (also settable via the Status form).

See also:

Class wwPageResponse

© West Wind Technologies, 1996-2018 • Updated: 09/16/16
Comment or report problem with topic