T
trullock
Hi,
I'm trying to protect certain .aspx pages so that only members in
certain roles can access them.
[PrincipalPermissionAttribute(SecurityAction.Demand, Role = "myRole")]
public partial class myPage : System.Web.UI.Page
{...
When i access that page when not in "myRole" i get a security
exception. This is as I'd expect, but how do i trap and handle the
error so i can display a friendly error page instead of the .NET one?
Thanks
Andrew
I'm trying to protect certain .aspx pages so that only members in
certain roles can access them.
[PrincipalPermissionAttribute(SecurityAction.Demand, Role = "myRole")]
public partial class myPage : System.Web.UI.Page
{...
When i access that page when not in "myRole" i get a security
exception. This is as I'd expect, but how do i trap and handle the
error so i can display a friendly error page instead of the .NET one?
Thanks
Andrew