if (SecurityManager.IsGranted(new AspNetHostingPermission(AspNetHostingPermissionLevel.Medium))) { //PT.Wbr("ABC"); }else{ //PT.Wbr("D"); }