Hi,
I have the following code
I am forced to remove the table from the dsShoppingBasket dataset as i am adding it too the dsCompiled dataset. Because i remove this table it also removes it from the DataSet stored in the session variable which i use else where. Does anyone know any way that i can add a copy of the table to the dsCompiled dataset rather than adding the reference to the table in the dsShoppingBasket Dataset.
Any help would be appreciated
Deleco
I have the following code
Code:
Dim dsShoppingBasket As DataSet
Dim dtDelegates As DataTable
Dim dsCompiled As New DataSet
Dim dtShoppingBasket As New DataTable
dsShoppingBasket = Session("dsShoppingBasket")
dtDelegates = Session("dtDelegates")
dtShoppingBasket = dsShoppingBasket.Tables(0)
dsShoppingBasket.Tables.Remove(dsShoppingBasket.Tables(0))
dsCompiled.Tables.Add(dtShoppingBasket)
dsCompiled.Tables.Add(dtDelegates)
I am forced to remove the table from the dsShoppingBasket dataset as i am adding it too the dsCompiled dataset. Because i remove this table it also removes it from the DataSet stored in the session variable which i use else where. Does anyone know any way that i can add a copy of the table to the dsCompiled dataset rather than adding the reference to the table in the dsShoppingBasket Dataset.
Any help would be appreciated
Deleco