RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WebDisp.TPageAccessDenied Enumeration

TPageAccessDenied indicates why a user was denied access to a requested Web page.

Pascal
TPageAccessDenied = (
  adLoginRequired,
  adCantView
);
C++
enum TPageAccessDenied {
  adLoginRequired,
  adCantView
};

The following table describes the possible values:

Value 
Meaning 
adLoginRequired  
The caller has not logged in and the page specified by PageName requires a login. If the OnPageAccessDenied event handler does not set Handled to true, the dispatcher obtains a response message from the page specified by the end user adapter's LoginPage property. If the application does not include an end user adapter, or if that adapter does not specify a login page, the dispatcher raises an EPageDispatcherException exception.  
adCantView  
The caller was denied access to the page by an OnCanViewPage event or because the caller's access rights do not match those required by the target Web page module. If the OnPageAccessDenied event handler does not set Handled to true, the dispatcher raises an EPageDispatcherException exception.  

 

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