how can i pass and get the value of the integer array from one page to another page in vb.net

Diksha dudi 126 Reputation points
2022-04-15T10:56:51.657+00:00

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:

![193387-screenshot-49.png193416-screenshot-50.png

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful