Author: parandal1 | Posted on: 11/24/2008 10:33:38 AM | Views : 286

I have a datatable set up in my isPostBack function of my page_load event.  I add items to
the datable and then when I try to list the items, i.e...i try to loop through the datatable it is like the datatable is being cleared out each time i add.  I only get the most current item that has been added.

Any ideas???

Here is my code:

All code is in the page_load event.

 

If Not Page.IsPostBack Then
            ''create datatable to store coordinates in
            Dim coordinateTable As DataTable = New DataTable
            Dim col As DataColumn

            col = New DataColumn()
            col.DataType = Type.GetType(&qu ...

Go to the complete details ...