CMSPageRedirectToAccessDenied Method (String, String, String, String, String) |
Redirects the user to Access denied page
Namespace: CMS.UIControlsAssembly: CMS.UIControls (in CMS.UIControls.dll) Version: 8.2.23
Syntax protected static void RedirectToAccessDenied(
string pageUrl,
string resourceName,
string permissionName,
string uiElementName,
string message = null
)
Parameters
- pageUrl
- Type: SystemString
Access denied page URL - resourceName
- Type: SystemString
Resource name that failed - permissionName
- Type: SystemString
Permission name that failed - uiElementName
- Type: SystemString
UI element name that failed - message (Optional)
- Type: SystemString
Custom message
See Also