I am using ASP3.0 and IIS5
I want to have OOP so I have define a class call Employee with
property 'fullName' and methods like getFullName().
To save a group of employee in session, I use a dictionary.
-----------------
dim employees
set employees = CreateObject("Scripting.Dictionary")
dim vpOfSales
set vpOfSales = new Employee
vpOfSales.fullName = "Brian Miller"
response.write vpOfSales.getFullName() ' work here
employees.add "vpOfSales", vpOfSales
Set session("employees") = employees
....
-----------------
The problem came when I retrieve the Employee objects in *another*
page
-----------------
dim employees
Set employees = session("employees")
for each person in employees
response.write person.getFullName() ' have error here
next
....
-----------------
ASP complain the object doesn't have a property or method
getFullName().
What is the problem?
Is there a solution?