Datatable Caching

  • Thread starter Thread starter Joe Curry
  • Start date Start date
J

Joe Curry

if (Cache["MyDatatable"] == null)
Fill MyDatatable

Cache.Insert("MyDatatable",dtDatatable,null,DateTime.Now.AddMinutes(5),Syste
m.TimeSpan.Zero);
In debug mode Cache["MyDatatable"].Rows.Count = 38;
else
dtDatatable = (System.Data.DataTable) Cache["MyDatatable"];

Now on a post back
In debug mode Cache["MyDatatable"].Rows.Count = 0;


What gives...
 
maybe 5 sec. pass ?

Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture
 
Back
Top