Make a Session var and initialise it to true,
(C# sorry)
Sub Page_load
If not ispostback then
If ((boolean)Session["var"]){
...
get data in dataSet
add some dataTables
Databind to datagrid
...
Session["var"] = false;
}
Else
Bind dataGrid
End if
End sub
should do it for
once per session.
If you need to do it just once for everytime the pageloads - add something like
OnPageUnload(......){
Session["var"] = true;
}