Hi, I've been looking all over google, and I can't seem to find either a yes or no to this question.
Basically, I have an admin suite built into an ASP page and would love to do something like:
with the idea being that IIS would catch the HTTP Error and display the 401.5 error file registered for that folder.
The code is only an issue for a non-admin user who enters in the full url or an admin whose session has expired because I have, of course, only displayed links to these pages to qualified users.
Any ideas?
Basically, I have an admin suite built into an ASP page and would love to do something like:
Code:
if not IsAdmin(user) then
raise HTTP Error 401.5
else
display page
end if
with the idea being that IIS would catch the HTTP Error and display the 401.5 error file registered for that folder.
The code is only an issue for a non-admin user who enters in the full url or an admin whose session has expired because I have, of course, only displayed links to these pages to qualified users.
Any ideas?