Hi
I have made an menu using ASP classes. Now I want to make an instance (object) of the menu class in one page and use this object in another page. I have done the following:
<CLASS Menu>
...
</CLASS>
<%
Dim HoofdMenu
Set HoofdMenu = new Menu
.....do some things with HoofdMenu.....
set Session("theMenu" = HoofdMenu
%>
When I use this Session variable in another ASP page, I cannot call the Menu-methods or do anything else with the object. The code I used is:
<%
Dim HoofdMenu
set HoofdMenu = Session("theMenu"
call HoofdMenu.doSomething
%>
Does someone know of a way to maintain the object through the whole application?
Thanx
Diederik
I have made an menu using ASP classes. Now I want to make an instance (object) of the menu class in one page and use this object in another page. I have done the following:
<CLASS Menu>
...
</CLASS>
<%
Dim HoofdMenu
Set HoofdMenu = new Menu
.....do some things with HoofdMenu.....
set Session("theMenu" = HoofdMenu
%>
When I use this Session variable in another ASP page, I cannot call the Menu-methods or do anything else with the object. The code I used is:
<%
Dim HoofdMenu
set HoofdMenu = Session("theMenu"
call HoofdMenu.doSomething
%>
Does someone know of a way to maintain the object through the whole application?
Thanx
Diederik