B
Ben
Hi,
I defined roles in order to deny access for some pages to anonymous users.
I tested it by typing the url of a denied page to test the system
(http://denypage.aspx).
It works (access denied), and i'm automatically redirected to the login.aspx
file that is defined in the root of the application.
Now i wonder how asp.net knows where the file containing the login control
is. I tried this:
- changing the location of file login.aspx (putting it into a subdir)
- changing the name of login.aspx to login2.aspx
In both cases, when trying to access a denied file, i get the error:"The
resource cannot be found: /app_name/login.aspx .
May i conclude that file "login.aspx" always MUST be in the root of the
application and that its name MUST be 'login.aspx'?
Thanks
I defined roles in order to deny access for some pages to anonymous users.
I tested it by typing the url of a denied page to test the system
(http://denypage.aspx).
It works (access denied), and i'm automatically redirected to the login.aspx
file that is defined in the root of the application.
Now i wonder how asp.net knows where the file containing the login control
is. I tried this:
- changing the location of file login.aspx (putting it into a subdir)
- changing the name of login.aspx to login2.aspx
In both cases, when trying to access a denied file, i get the error:"The
resource cannot be found: /app_name/login.aspx .
May i conclude that file "login.aspx" always MUST be in the root of the
application and that its name MUST be 'login.aspx'?
Thanks