asp.net - Adding a datatable and a session containing datatable -
I have a session that contains a figure and also a function that returns the dataset. I have to add these two, how can I do this?
The code below can be replaced with the correct code.
session ("table") = session ("table") + obj GetCustomer ()
... where obj is an object of business layer .
'+' can not be used to connect these two, so how do I do this?
I will try to do something like this:
Dim MyDataSet1's New DataSet (as Dim MyDataSet2) New DataSet () Dim dt1 New DataTable () = Dat2 New DataTable () = obj.GetCustomer () MyDataSet1 as New DataTable () = CTEP (session ("Table"), Datatelle) Add as Tables (DT1) MyDataset 2.Tables.Add (dt2) MyDataSet1.Merge (MyDataSet2) session ("table") = MyDataSet1.Tables (0)
Chris < / P>
Comments
Post a Comment