Need advices on my codes

D

Danny Ni

Hi,

I am using datagrid's paging feature. What I usually do is to use codes to
get a dataset from SQL server and put the dataset into session, and in
PageIndexChanged event handler I set the datagrid datasource to the dataset
in session.

Questions:
(1) Is this a good way? Or should I use the same codes to get dataset again
in PageIndexChanged event handler.
(2) When should I remove the dataset from session? This dataset is only
useful to this page only.

TIA
 

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,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top