AfterBinding

Description

Occurs after the controls have been bound to the input data and all validation has been done, but before any actions are performed.

Applies to

psPage object

Arguments

None

Returns

None

Usage

This event is equivalent to the BeforeAction event but occurs before it. This event enables you to semantically separate logic related to post-processing of the data binding from logic related to the pre-processing of actions.

NoteError processing Because this event is triggered before generation occurs, you cannot use psDocument.Write to report errors. Instead, use the ReportError method on the psPage object to trigger the ServerError event. The error will then be added to the error log, depending on the ServerError return value.

Examples

Example 1

This example sets a trace for all events after binding. The trace messages appear at the top of the page in the client browser.

psPage.SetTrace (true);

See also