Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: DataSet


Message #1 by Markus Schmidt <Markus.Schmidt@c...> on Wed, 23 May 2001 15:48:00 +0200
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, ?

Message #2 by "Alex Homer" <alex@b...> on Tue, 29 May 2001 15:19:53
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


  Return to Index