AfterAction

Description

Occurs after all actions have been performed but before generation of the HTML page.

Applies to

psPage object

Arguments

None

Returns

Boolean

Usage

This event occurs only after a self-navigation, making this event a good place to call the Redirect method if that was not done in a control’s ServerAction event. It is also a place where an action method on an EAServer component can be called to change the internal state before the get portion of data binding is run.

NoteError processing Because this event is triggered before generation occurs, psDocument.Write cannot be used for reporting errors. Instead, you can 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 statement in the AfterAction event changes the Web page that displays in the client-side browser:

psPage.Redirect("My_WebPage.htm");

See also