Member_2_1242703
asked on
Restricting access to page or directory in ASP.NET
Is there a simple way to restrict access to a page or directory. I tried using the code below in web.config but I can't specify a password and I'm not sure where it's looking for credentials. IIS?
TIA
TIA
<location path="secure">
<system.web>
<authorization>
<deny users="?" />
<allow users="myuser" />
</authorization>
</system.web>
</location>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Impersonation / locking down on the server could be an option depending on your context.