Eliyahu Goldin wrote:
Giggi,
Page 1 is available only to Page 2. Page 2 will need to save the info in one
of its properties to make it available to Page 3.
Hi!
Thank you everybody!!
That would be perfect, could you please give a few lines of example?
That's what I have:
----Page1.aspx----
<script runat="server">
Public ReadOnly Property dest() As ArrayList
Get
Dim dest_list As New ArrayList
...'takes data from some checkboxes selected on the page
Return dest_list
End Get
End Property
</script>
----Page2.aspx----
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs)
'gets array from previous page
Dim dest_list As ArrayList = PreviousPage.dest() '<-- doesn't
work when called by Page3!!!
End Sub
Public ReadOnly Property get_dest() As ArrayList
'returns array to the next page
Get
Return dest_list '<--- this is out of scope!!
End Get
End Property
</script>
----Page3.aspx----
....
Dim destinatari As ArrayList = PreviousPage.get_dest()