S
Shawn Berg
I am building some .NET classes and pages that will be part of an existing
classic ASP app. The ASP app uses cookies to store login information for
administrators. I have one include file that checks to see if the user is a
logged in administrator, and if not, redirects to a login page. I then
include this file in all ASP pages I do not want non-administrators to be
able to access.
I want to be able to do the same type of thing with .ASPX pages. I know I
could easily do this with a base page and by setting a property
"LoginRequired" or something of the like, and then checking a cookie and
redirecting in the BasePage class, but I do not want this to be something
that is in the code-behind. I'd like to be able to set some sort of value on
the actual .ASPX page and have the BasePage class check that instead. This
way I can make changes on the fly if need be without having to recompile code.
Any ideas?
classic ASP app. The ASP app uses cookies to store login information for
administrators. I have one include file that checks to see if the user is a
logged in administrator, and if not, redirects to a login page. I then
include this file in all ASP pages I do not want non-administrators to be
able to access.
I want to be able to do the same type of thing with .ASPX pages. I know I
could easily do this with a base page and by setting a property
"LoginRequired" or something of the like, and then checking a cookie and
redirecting in the BasePage class, but I do not want this to be something
that is in the code-behind. I'd like to be able to set some sort of value on
the actual .ASPX page and have the BasePage class check that instead. This
way I can make changes on the fly if need be without having to recompile code.
Any ideas?