RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WebDisp.TDispatchPageHandledEvent Type

TDispatchPageHandledEvent is the type for event handlers that can handle HTTP request messages.

Pascal
TDispatchPageHandledEvent = procedure (Sender: TObject; const PageName: string; var Handled: Boolean) of object;
C++
(Sender: TObject; const PageName: string; var Handled: Boolean) ( TDispatchPageHandledEvent)();

TDispatchPageHandledEvent is the type for event handlers that are called before a Web page module handles an HTTP request message. The event handler allows the application handle the message in any way, and then prevent the default handling that would otherwise occur. 

Sender is the page dispatcher or Web page module that receives the event. 

PageName is the name of the Web page module to which the request was addressed. 

Handled returns an indication of how the application should proceed after the event handler exits. If the event handler sets Handled to true, the application assumes that the event handler has taken care of the request and filled out the content of the response message. If the event handler leaves Handled set to false, the application continues with its normal processing of the request message. 

 

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