global dataset

  • Thread starter Thread starter Billy Cormic
  • Start date Start date
B

Billy Cormic

Hello,
I would would like to declare either a global table or a dataset so
that I can access it when the page reloads. How can I do this? Do I
make it a session variable? Can someone please show me the code?

Thanks,
Billy
 
Hi Billy,

This sounds to a webform is it that?

Otherwise when it is for a winform you can just say on top of your form
under the window form designer.... code
Private ds as dataset
or
Private dt as datatable

And then somewhere in a sub where you
ds = new dataset
dt = new datatable

However not for a webform

I hope this helps?

Cor
 
I just declared the dataset in a modual and that worked fine. I made
the dataset public.

Thanks,
Billy
 
Back
Top