Hi
You can use the following.
datatableforQuery=getdatafromdatabase();
session["Keepdata"]=datatableforQuery;
where getdatafromdatabase() is the mathod that retrive the data from DB query("
select * from customer"
)
this session variable is very intelligent it will cast to datatable automatically.
another ways is use
a)Viewstate
b)Hashtable
c)temp table in sql server
Hope it will help you.
Thanks