Leprachaun
New Member
I have an mvc3 app which uses FluentSecurity in which policy violation is handled with IPolicyViolationHandlerpublic class DefaultPolicyViolationHandler : IPolicyViolationHandler{ public string ViewName = "AccessDenied";\[code\]public ActionResult Handle(PolicyViolationException exception){ if (SecurityHelper.UserIsAuthenticated()) { return new ViewResult { ViewName = ViewName }; } else { return new RedirectResult(LoginURL); }}\[/code\]}now it opens a new page with my Shared View AccessDenied. My question is how can i open a popup instead of a new page to show the "Access Denied msg". Thanks