A page can be supplied with data items that are automatically processed before the first page load script is executed.
Each data item, or parameter, consists of a name=value pair, similar to the parameters in a URL.
These values become global variables in the script context,
and can be used by a page load script to customize the behaviour of a page.
Page data can be supplied as part of the URL used to load DataHub WebView, or as data attached to a hyperlink control within another DataHub WebView page. This allows an external link to supply information to DataHub WebView so page load scripts can customize the behavior of pages.
Page data can only take the form of a simple assignment, like name=value. The value is never evaluated and is always treated as a string.
The order of execution during a page load looks like this:
- Pre-load script is executed (OnPageLoadStarted event handler).
- Page data is added to the global scope.
- Controls are initialized and their initialization scripts are executed.
- Post-load script is executed (OnPageLoadComplete event handler).
