If I have defined a class in an ASP file, can I reference it as an object in my Global.asa?
eg.
I want a page class to be accessable anywhere without including it.
I usually do
in each page, and
to create the object, but this particular class has to go to the database each time to initialise. If I could set up this class as an object in the Global.asa it would initialise just once.
I want to be able to do something like this... (but this doesn't work).
In GLOBAL.ASA
Is my syntax wrong? or can you just not do this?
ASP3.0 by the way...
Si...
eg.
I want a page class to be accessable anywhere without including it.
I usually do
Code:
<!--#include file="clsPage.asp"-->
Code:
oPage = new clsPage
I want to be able to do something like this... (but this doesn't work).
In GLOBAL.ASA
Code:
<object runat="server" scope="application" id="clsCust"
progid="clsCust.ASP">
Is my syntax wrong? or can you just not do this?
ASP3.0 by the way...
Si...