L
Lichunlin
Dear all,
Sorry for cross posting.
I have one page, create an object and save it in session scope, and then redirect to another page.In the new page, the object existed in session object, but can not access its property. The code of page one is :
<%
Class SiteInfo
dim SiteID, SiteName
end class
dim site
set site = new SiteInfo
site.SiteID = "01"
site.SiteName = "Microsoft"
set session("formdata") = site
response.redirect "edit.asp"
%>
the code in edit.asp:
<%
if isObject(session("formdata") then
response.write session("formdata").SiteID
end if
%>
the error occured at line "response.write" :
object can not support the property or method: SiteID
Could you please help me to check why this happen?
Appreciate for any advice.
Best Regards
lichunlin
China
Sorry for cross posting.
I have one page, create an object and save it in session scope, and then redirect to another page.In the new page, the object existed in session object, but can not access its property. The code of page one is :
<%
Class SiteInfo
dim SiteID, SiteName
end class
dim site
set site = new SiteInfo
site.SiteID = "01"
site.SiteName = "Microsoft"
set session("formdata") = site
response.redirect "edit.asp"
%>
the code in edit.asp:
<%
if isObject(session("formdata") then
response.write session("formdata").SiteID
end if
%>
the error occured at line "response.write" :
object can not support the property or method: SiteID
Could you please help me to check why this happen?
Appreciate for any advice.
Best Regards
lichunlin
China