RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebPageModule.OnAfterDispatchPage Event

Occurs after the page module generates its Web page.

Pascal
property OnAfterDispatchPage: TDispatchPageEvent;
C++
__property TDispatchPageEvent OnAfterDispatchPage;

Write an OnAfterDispatchPage event handler to take any final action after the page producer in the Web page module has generated its Web page. For example, the OnAfterDispatchPage event handler can make adjustments to the headers of the response message. 

When OnAfterDispatchPage occurs, the Web page module has already added the content to the response message, but has not yet sent the response. This event does not occur if the BeforeDispatchPage event handler handles the request, bypassing the automatic use of the module's page producer.

Note: If the Web page module does not include a page producer, the OnAfterDispatchPage event still occurs, but the response message has no content.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!