RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomPageDispatcher.OnPageAccessDenied Event

Occurs when the page dispatcher fails to validate the caller's right to access a requested Web page.

Pascal
property OnPageAccessDenied: TPageAccessDeniedEvent;
C++
__property TPageAccessDeniedEvent OnPageAccessDenied;

Write an OnPageAccessDenied event handler to customize the response when a request for a specific Web page fails to be validated.

Tip: To access the Web request and response objects from within an OnPageAccessDenied event handler, call the global WebContext function to access the Web context and read its Request and Response properties.
 

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