Role based Security in ASP.Net

From: Eric Lyons (EricLyons1@comcast.net)
Date: 01/22/03


From: "Eric Lyons" <EricLyons1@comcast.net>
Date: Tue, 21 Jan 2003 21:57:52 -0500


I know this has been asked a lot but I'm having a small problem. I've read
all the articles and I have form and role security working. The problem is
requesting a page that has a role specified (Let's say "Admin") after a user
has already logged in and the user doesn't have the role assigned to them.
What happens is the user is redirected to login url because the user doesn't
have the role assigned. Is there a way I can detect this somehow and
redirect to an access denied page or something. I know I can check the role
in code on every page in that directory but that defeats the roles in the
web config. Thanks for any information or examples.

Eric Lyons



Relevant Pages

  • Redirect Standard Output to a live UI
    ... I've been able to read enough HOWTOs and other articles to successfully ... get another thread to start a process and I can redirect the output of ... I'd really like this to be "live", as in, as soon as the process kicks ...
    (microsoft.public.dotnet.csharp.general)
  • Re: HTTP Home page Redirection ISA
    ... Read the help, books and articles! ... This posting is provided "AS IS" with no warranties, ... Is there a way to redirect a clients initial request to a disclaimer (URL ...
    (microsoft.public.isa.enterprise)
  • Re: Question
    ... These top ten articles are shown on the index page with a little ... > cookie if a cookie is set then it redirects to the story page ... > redirect, i don't know what server variable to use. ... Next enable Forms authentication (see <authentication ...
    (microsoft.public.dotnet.general)
  • Re: Question
    ... "Steven Spits" wrote: ... These top ten articles are shown on the index page with a little ... >> cookie if a cookie is set then it redirects to the story page ... >> redirect, i don't know what server variable to use. ...
    (microsoft.public.dotnet.general)