RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWebPageModule.OnBeforeRedirectToPage Event

Occurs before the Web page module assembles a response that redirects the caller to its Web page.

Pascal
property OnBeforeRedirectToPage: TDispatchPageParamsHandledEvent;
C++
__property TDispatchPageParamsHandledEvent OnBeforeRedirectToPage;

Write an OnBeforeRedirectToPage event handler to perform any tasks necessary for redirecting a request to the associated Web page. For example, the OnBeforeRedirectToPage event handler can add parameters to the Params parameter so that they appear in the request that results from the redirection. This event only occurs if an adapter in the WebSnap application executes an adapter action whose options include a redirection (roRedirectHTTPGet or roRedirectHTTPPost). 

If the event handler sets Handled to true, the Web page module assumes it has handled the redirection and performs no further processing. Otherwise, after the event handler exits, the Web page module sets up the response message to encode the redirection parameters and calls SendRedirect. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!