G
Guest
I have a .net aspx page MyPage.aspx (client side) with code behind
MyPage.aspx.vb (server side).
I use the Page_Load event in MyPage.aspx.vb to load data into a multiteir
class based collection.
MyCollection(sYear).cMonths(sMonth).cDays(sDay).cEvents(sID).EventText
My problem arrives when I try to access this collection from the page
(MyPage.aspx).
Public Class EventsCal
Inherits System.Web.UI.Page
Private moColYears As colYears
Private Sub Page_Load(....
(Code to load data into class...)
end sub
Public Function AbvCollection() As colYears
Return moColYears
End Function
Public Function AbvTest() As Integer
Return 1
End Function
---------------------------
<SCRIPT language="vbscript" id="clientEventHandlersVBS">
<!--
Private oColYears
Sub window_onload
set oColYears = <%= AbvCollection() %>
...
---------------------------
---------------------------
colYears is initial level of my class collection structure
colYears.vb
oYear.vb
colMonths.vb
oMonths.vb
etc.
If I set set oColYears = <%= AbvTest() %> it works just fine.
However, when I
set oColYears = <%= AbvCollection() %>
I receive an error of
....runtime error: Object required: 'ELFsearchClient"
ELFsearchClient is the app name.
I have tried this sixteen different ways. There must be a way to access
the class collection data.
What am I doing wrong??????
Thank you for all help!!!
MyPage.aspx.vb (server side).
I use the Page_Load event in MyPage.aspx.vb to load data into a multiteir
class based collection.
MyCollection(sYear).cMonths(sMonth).cDays(sDay).cEvents(sID).EventText
My problem arrives when I try to access this collection from the page
(MyPage.aspx).
Public Class EventsCal
Inherits System.Web.UI.Page
Private moColYears As colYears
Private Sub Page_Load(....
(Code to load data into class...)
end sub
Public Function AbvCollection() As colYears
Return moColYears
End Function
Public Function AbvTest() As Integer
Return 1
End Function
---------------------------
<SCRIPT language="vbscript" id="clientEventHandlersVBS">
<!--
Private oColYears
Sub window_onload
set oColYears = <%= AbvCollection() %>
...
---------------------------
---------------------------
colYears is initial level of my class collection structure
colYears.vb
oYear.vb
colMonths.vb
oMonths.vb
etc.
If I set set oColYears = <%= AbvTest() %> it works just fine.
However, when I
set oColYears = <%= AbvCollection() %>
I receive an error of
....runtime error: Object required: 'ELFsearchClient"
ELFsearchClient is the app name.
I have tried this sixteen different ways. There must be a way to access
the class collection data.
What am I doing wrong??????
Thank you for all help!!!