How can I find out whether a user has permissions to see a page or not?

From: Ramiro Calderon Romero (rcrdev@hotmail.com)
Date: 07/30/02


From: "Ramiro Calderon Romero" <rcrdev@hotmail.com>
Date: Tue, 30 Jul 2002 13:40:41 -0500


Hi all,

I'm working in a Web App that might be used for several users, with
different permissions. I'm using web.config files in order to grant/deny the
access to those pages I want to protect, and it works just fine so far.

Now what I want to do is render the menu as a user control or such, but I
need to know what pages the current user is allowed to see, and I think
there must be some way to find this out by checking the web.config file's
hierarchy somehow, but I'm not sure if there's another way to solve it. The
WMI classes exposed by the .NET Framework could be helpful as well, but in
[1] states these clases possibly have a bug.

[1]
http://discuss.develop.com/archives/wa.exe?A2=ind0207C&L=DOTNET-WEB&D=0&I=-3
&P=6926

Regards,

Ramiro Calderon
rcrdev@hotmail.com



Relevant Pages

  • Re: webservice permissions
    ... "Ken Schaefer" wrote in message ... > c) If you want to use a custom account for a web app pool identity, ... so that it has the necessary permissions to run. ... >>I have a client who is trying to deploy a webservice I wrote. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: webservice permissions
    ... "Ken Schaefer" wrote in message ... > c) If you want to use a custom account for a web app pool identity, ... so that it has the necessary permissions to run. ... >>I have a client who is trying to deploy a webservice I wrote. ...
    (microsoft.public.inetserver.iis)
  • Re: Concurrent Web- and direct access to an Access DB
    ... > Access at the same time that a web app accesses the the DB (read ... account is the user, not the IUST account, and therefore it needs Change ... permissions for the folder containing the database. ...
    (microsoft.public.inetserver.asp.db)
  • Re: Concurrent Web- and direct access to an Access DB
    ... > Access at the same time that a web app accesses the the DB (read ... account is the user, not the IUST account, and therefore it needs Change ... permissions for the folder containing the database. ...
    (microsoft.public.inetserver.asp.general)
  • Re: granting ntfs permissions via vbscript
    ... One of the features of this web app is file upload. ... > custom actions, that are no more, no less than vbscripts executions on ... responsible on grant the correct permissions to the IUSR ... > Renato Aloi ...
    (microsoft.public.scripting.vbscript)