ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Page / Programming
  • Overview
  • Operating mode
  • Automatic management
  • Advanced management
  • Special case
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Page contexts
Overview
In a Windows application, the information relative to a window is kept with the window.
In a dynamic WEBDEV website, a page context exists on the server for each page displayed in the browser of Web user.
The page context contains all the information related to the page:
  • content of controls,
  • local variables,
  • global variables,
  • WLanguage "server" code, etc.
Operating mode

Automatic management

By default, WEBDEV automatically manages the contexts of dynamic pages:
  • A page context is opened when the dynamic page is displayed in the browser.
  • The context of a page is updated according to the information the user enters in the browser. The context is updated when the user validates the page (via a "Submit" button or with PageSubmit).
  • The existing page contexts are closed when using PageUse or FramesetUse. Then, the page contexts corresponding to the pages to display are opened.

Advanced management

WEBDEV offers advanced context management with ContexteXXX functions.
You can:
  • open the page context without displaying it on the browser (ContextOpen),
  • check the existence of a page context on the server (ContextExist),
  • close the context of an unused page (ContextClose).
This advanced management of page contexts can be used to:
  • Save memory on the server (by closing the contexts of the pages previously opened but unused for example).
  • Prepare the pages intended to communicate with other applications (the page receiving information back from a site for secure payment for example).
  • Use the pages from other pages.

Special case

When using the browser "Back" button, a desynchronization may occur between the page and its context. For more details, see Managing the browser "Back" button.
See also
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help