Developer technologies | ASP.NET | Other
A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
1st page code:
Dim i As Integer
i = 0
For Each row As DataRow In dt1.Rows
arr_sub_total(i) = Convert.ToInt32(row("price")) * Convert.ToDouble(row("quantity"))
i = i + 1
Next
Session("arr_sub_total") = arr_sub_total
2nd page code:
Dim arr_sub_total() As Integer
Session("arr_sub_total") = arr_sub_total
For Each i In arr_sub_total
MsgBox(arr_sub_total(i).ToString)
Next
error:


Try arr_sub_total = CType(Session("arr_sub_total"), Integer( )) instead of Session("arr_sub_total") = arr_sub_total in your second page.