Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Fern Sanchez   on Oct 11 In Asp.net Category.

  
Question Answered By: Kanchan Ap   on Oct 11

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;
}

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on problem with page_loading Or get search suggestion and latest updates.


Tagged: