dataset and dataadapter persistance between page loads

A

Amadelle

Hi all and thanks in advance,

I was wondering how to cache/persist a dataset between page loads (after
button clicks, sorts, filters, etc.)? so that i don't have to requery the
database
everytime and create a new dataset and a new dataadapter everytime. I know
that I can use the Session object and store the dataset in a session object,
but I was wondering whether there is a better way of doing this.

I appreciate your help and input in this matter,

Thanks,

Amadelle
 
J

John Saunders

Amadelle said:
Hi all and thanks in advance,

I was wondering how to cache/persist a dataset between page loads (after
button clicks, sorts, filters, etc.)? so that i don't have to requery the
database
everytime and create a new dataset and a new dataadapter everytime. I know
that I can use the Session object and store the dataset in a session object,
but I was wondering whether there is a better way of doing this.

I appreciate your help and input in this matter,

Session works fine, as long as you're not saving a huge DataSet.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top