saurabh
saurabh

Reputation: 271

can i store datatable for the further refinement

i have a datatable with the results i just want to refine the results using this datatable... i am trying to do it but this datatable is distroyed each time page is refreshed......

Upvotes: 0

Views: 182

Answers (2)

Cerebrus
Cerebrus

Reputation: 25775

News flash: The web is stateless!

You would do well to look up "State management in ASP.NET".

Upvotes: 1

Skiltz
Skiltz

Reputation: 554

You can save the datatable in a session variable or cache

Cache.Insert("MyData1", datatable)

when the the page loads again you can check to see of the cache value is not equal to null. If its not you can use the value again.

ie.

Datatable Source;
Source = (Datatable)Cache["MyData1"];

Upvotes: 1

Related Questions