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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top