473,324 Members | 2,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

global dataset

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
Nov 20 '05 #1
2 2074
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
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?

Nov 20 '05 #2
I just declared the dataset in a modual and that worked fine. I made
the dataset public.

Thanks,
Billy
"Cor Ligthert" <no**********@planet.nl> wrote in message news:<ud*************@tk2msftngp13.phx.gbl>...
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
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?

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: James Morton | last post by:
I am writing a c# windows forms application. I read in an XML file to a dataset for read-only access (by the user and the application logic). This is not an MDI app but has LOTS of seperate...
0
by: Hyper X | last post by:
Hey guys, I have about 150 forms using the ComboBoxes. There is at least one combobox in every form. I am filling the comboboxes on FormLoad of every form. Eg., Fill Staff table on form...
2
by: Melson | last post by:
Hi I got a problem. I create a dataset in Button1_Click procedure. However, I got error when I run myDS.table.rows.count in Button2_Click procedure. Anyone know how to create a global...
7
by: Mark Goldin | last post by:
I'd like to have a dataset that will be declared on a main ASPX page and visible in any custom or user control. Is there a way of doing that? Thanks
13
by: Charles A. Lackman | last post by:
Hello, Is there a way to make a dataset global to all my aspx 2.0 web forms? Thanks, Chuck
23
by: David Colliver | last post by:
Hi, using c#, 1.1 I know that we are not supposed to use global variables etc. in c# I am having a problem, but not sure how to resolve. I did have another post here, but may have over...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.