J
Jon Paal
I have a public property in my server control and I want to populate it with values generated by the control.
When I assign the value of the property to a function in the control, which creates the values, I get a compilation error that says
the function doesn't have all the other property values to work with.
So, how do I populate the arraylist as a public property, so I can use it in my web page ?
========== code in use ==========
I create the property wth the webpage by:
................
Dim arrTempList As New ArrayList()
oThis.myArrayList = arrTempList
...............
I have the the property defined in the control as:
.....................
Public arrChartList As Arraylist
Public Property myArrayList As ArrayList
Get
Return arrChartList
End Get
Set
arrChartList = myfunction() '<--builds values for arraylist
End Set
End Property
.......................
When I assign the value of the property to a function in the control, which creates the values, I get a compilation error that says
the function doesn't have all the other property values to work with.
So, how do I populate the arraylist as a public property, so I can use it in my web page ?
========== code in use ==========
I create the property wth the webpage by:
................
Dim arrTempList As New ArrayList()
oThis.myArrayList = arrTempList
...............
I have the the property defined in the control as:
.....................
Public arrChartList As Arraylist
Public Property myArrayList As ArrayList
Get
Return arrChartList
End Get
Set
arrChartList = myfunction() '<--builds values for arraylist
End Set
End Property
.......................