J
jobs
Hello.
If my users are logged in, and try to access restricted pages I want
to direct them to a custom 403 page. If they are not logged in, I
would like to continue to direct them to the login page as is
currently happening.
Curently, they always direct to the Login page in both cases, which i
think is confusing.
I have this in the web.config of the directory and the project
webconfig:
<customErrors defaultRedirect="~/ErrorPage.htm">
<error statusCode="403" redirect="~/NoAccess.htm"/>
<error statusCode="404" redirect="~/FileNotFound.htm"/>
</customErrors>
Thanks for any help or information!
If my users are logged in, and try to access restricted pages I want
to direct them to a custom 403 page. If they are not logged in, I
would like to continue to direct them to the login page as is
currently happening.
Curently, they always direct to the Login page in both cases, which i
think is confusing.
I have this in the web.config of the directory and the project
webconfig:
<customErrors defaultRedirect="~/ErrorPage.htm">
<error statusCode="403" redirect="~/NoAccess.htm"/>
<error statusCode="404" redirect="~/FileNotFound.htm"/>
</customErrors>
Thanks for any help or information!