aspx thread: DataSet
Hello Ich have a DataSet an filled it with data in a ButtonClick Procedure. Why is it losing it's data if I leave the procedure. What can I do, ?
Probably you are declaring the DataSet inside the procedure, and so it goes out of scope when the procedure ends. You can declare it as a global variable in the page by putting the declaraion outside any procedures: <script language="VB" runat="server"> Dim gobjDataSet As DataSet Sub .....() gobjDataSet = New DataSet() ... End Sub
|





