[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.caching

Dataset or datatable will not persist in cache

jw56578@gmail.com

4/25/2005 8:52:00 PM

If i have a valid Dataset or Datatable with rows and i put it into the
cache by way of insert, why would the DS or DT have no rows when i
retrieve it back using get?

3 Answers

Brock Allen

4/25/2005 9:01:00 PM

0

Are you sure you''re getting back a DataTable instead of null? It''s possible
that the cache purged the item given the conditions you specified in the
Insert. But if there is a valid DataTable but no rows, then something else
is at work here, not the cache.

-Brock
DevelopMentor
http://staff.develop....



> If i have a valid Dataset or Datatable with rows and i put it into the
> cache by way of insert, why would the DS or DT have no rows when i
> retrieve it back using get?
>



Ben Strackany

4/26/2005 4:10:00 PM

0

Also if you''re using DefaultView you could have problems. If you want to use
dataviews you should create a new DataView when you pull a datatable or
dataset out of the cache.

--
Benjamin Strackany
http://www.developm...


"Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message
news:547101632500452852499344@msnews.microsoft.com...
> Are you sure you''re getting back a DataTable instead of null? It''s
possible
> that the cache purged the item given the conditions you specified in the
> Insert. But if there is a valid DataTable but no rows, then something else
> is at work here, not the cache.
>
> -Brock
> DevelopMentor
> http://staff.develop....
>
>
>
> > If i have a valid Dataset or Datatable with rows and i put it into the
> > cache by way of insert, why would the DS or DT have no rows when i
> > retrieve it back using get?
> >
>
>
>


jw56578@gmail.com

4/26/2005 11:17:00 PM

0

I use a valid dataset and have tried a datatable, after i retrieve from
the cache, the object is valid( not equal to nothing), but there are no
rows. I guess its a mystery.