Datatable Caching

Discussion in 'ASP .Net' started by Joe Curry, Jul 18, 2003.

  1. Joe Curry

    Joe Curry Guest

    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...
    Joe Curry, Jul 18, 2003
    #1
    1. Advertising

  2. Joe Curry

    Natty Gur Guest

    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


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur, Jul 20, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. J. Babe
    Replies:
    1
    Views:
    8,312
    Kevin Spencer
    Aug 15, 2003
  2. Fredrik Rodin

    Sort a datatable and create a new datatable

    Fredrik Rodin, Feb 16, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    9,027
    paul.mariotti
    Sep 28, 2007
  3. =?Utf-8?B?Qmx1ZWZsb3dlcg==?=

    Casting DataTable to class inherit from DataTable

    =?Utf-8?B?Qmx1ZWZsb3dlcg==?=, Apr 2, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    987
    =?Utf-8?B?Qmx1ZWZsb3dlcg==?=
    Apr 2, 2004
  4. jg
    Replies:
    1
    Views:
    713
    =?Utf-8?B?U2hhaWxlc2ggSmFubnU=?=
    Aug 17, 2004
  5. Ersin Gençtürk
    Replies:
    1
    Views:
    3,462
    Ersin Gençtürk
    Oct 6, 2004
Loading...

Share This Page