Can I store data for further revision

I have a datatable with results, I just want to refine the results using this datatable ... I am trying to do this, but this datatable is destroyed every time the page is refreshed ......

0
c # asp.net


a source to share


2 answers


You can store data in session variable or cache

Cache.Insert("MyData1", datatable)

      

when the page loads again you can check that the cache value is not null. If not, you can use the value again.



t.

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

      

+1


a source to share


Burst of news: Internet without citizenship!



You should look for " ASP.NET State Management ".

+1


a source to share







All Articles