ServerAction

Description

Occurs when a user action was the trigger for a page refresh, and after all validation and data binding has taken place.

Applies to

PSButtonClass, PSImageClass, PSStaticTextClass

Arguments

None

Returns

None

Usage

This event gives you the opportunity to respond to an action that the client performed. One action might be to link to a new page through a client-side redirect.

If the ServerAction event is not scripted for a Static Text control, the control is generated as an HTML SPAN tag. If the ServerAction event is scripted, an onClick event is scripted that causes a form submit.

Examples

Example 1

This statement in the ServerAction event changes the Web page that displays in the client-side browser:

psPage.Redirect("My_WebPage.htm");

See also

Redirect