Limiting access to pages

L

Lyners

I have an application that runs over our intranet. I have some pages I only
want "Administrative" people to see. I thought one way of doing this was to
creqate a sub directory in the application dorectory and add a web.config
file that would limit access to only those that we want as admin. But when I
created the sub directory and moved the aspx pages there i got an error
stating;

Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: Could not load type 'Application.SubDirectory\WebPage'.

What is the correct way to add a security layer like this, and what is the
appropriate way to move files to sub directories and have them run? I think
it has somethin to do with the code behind.

Lyners
 
P

Pat

Lyners the error you are getting doesn't seem its related to security issue
but compilation issue..
Pls elaborate.
Patrick
 
L

Lyners

Hi Pat, Thanks for the reply.
I figured out what I wanted to do. I added forms secuirty to the
application. I added users to a SQL Server Database and then had the
web.config point to a login screen where the user is prompted for a userid,
password. if it is a valid password then it alows them access to the web
pages in the directory. If not, well they get the login page over and over
again.

This works for what i am trying to do. Part of my error was my coding. But I
have learned a little and know have me application up and running.

Thank you.
Lyners
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top