check if user is the one specified in <location path="...
- From: zino66 <zino66@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 10 Mar 2010 14:01:01 -0800
In an intranet asp.net application I have the following in the web config:
<authentication mode="Windows" />
<location path="AdministrationFolder">
<system.web>
<authorization>
<allow users="John"/>
<allow users="David"/>
<allow users="Eric"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
The "Default.aspx" page is accessible to everybody.
I have a link <a href=Administration.aspx>Administration</a> on this page,
which I need it to be visible only if the user is one of those specified in
"<location path=....>" (If user = in (John, David, Eric) then, display the
link.)
How can I check if the logged user is one of the mentioned users above ?
.
- Follow-Ups:
- Re: check if user is the one specified in <location path="...
- From: Joe Kaplan
- Re: check if user is the one specified in <location path="...
- Prev by Date: Re: Override User.Identity.Name or Custom IIdentity
- Next by Date: Re: check if user is the one specified in <location path="...
- Previous by thread: Override User.Identity.Name or Custom IIdentity
- Next by thread: Re: check if user is the one specified in <location path="...
- Index(es):
Relevant Pages
|