This topic is locked

Same Security Test Event on Every Page

10/20/2007 6:30:57 PM
ASPRunnerPro General questions
N
nealwalters author

I already have a logon screen for my existing system, and now I have menu links to several ASPRunner pages.
I would like to have the same code added at the top of every single ASPRunner page:
If Session("YNAdminAuthority") <> "Y" then

Response.Write = "Access Denied - Please logon"

Response.End

end if
Currently, I open every single page in the Wizard, click on the page-load event, and add this code.

Is there a way to add this code one time for all pages?
Thanks,

Neal

http://CMSTrainingVideos.com - Free Content Management Training Videos

N
nealwalters author 10/20/2007

Version is 5.1

Sergey Kornilov admin 10/20/2007

You can put this code to include/header.asp file.