D
dennis.eklund
Hi...
I have a question that about global.asa and including a custom made class.
Wonder if it's possible and if so, how?
What I want is to set up my class global for the site, I made a asp file
called cls_utils.asp
and currently calling the <!-- include #file--> command in the default web
page,
and then Set util = MyUtils.
It would be nice to have this in the global.asa file instead of creating and
destroying the object all the time.
Is it possible to make a global object within global.asa with a custom class
file?
Hope this make sense =)
/Dennis
(running iis5)
example:
----global.asa------
<object runat="server" scope="session" id="util" ...dont know the rest
(classes/cls_utils.asp?).....>
--------------------
----cls_utils.asp----
Class MyUtils
public function SomeThing(strText)
something = strText
end function
End Class
--------------------
----default.asp-----
<html>
.....
....
<% = util.something("Does this work?") %>
--------------------
I have a question that about global.asa and including a custom made class.
Wonder if it's possible and if so, how?
What I want is to set up my class global for the site, I made a asp file
called cls_utils.asp
and currently calling the <!-- include #file--> command in the default web
page,
and then Set util = MyUtils.
It would be nice to have this in the global.asa file instead of creating and
destroying the object all the time.
Is it possible to make a global object within global.asa with a custom class
file?
Hope this make sense =)
/Dennis
(running iis5)
example:
----global.asa------
<object runat="server" scope="session" id="util" ...dont know the rest
(classes/cls_utils.asp?).....>
--------------------
----cls_utils.asp----
Class MyUtils
public function SomeThing(strText)
something = strText
end function
End Class
--------------------
----default.asp-----
<html>
.....
....
<% = util.something("Does this work?") %>
--------------------