ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,453 questions
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.