Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / April 2005

Tip: Looking for answers? Try searching our database.

Dataset or datatable will not persist in cache

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jw56578@gmail.com - 25 Apr 2005 21:51 GMT
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?
Brock Allen - 25 Apr 2005 22:01 GMT
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.com/ballen

> 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 - 26 Apr 2005 17:10 GMT
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.

Signature

Benjamin Strackany
http://www.developmentnow.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
[quoted text clipped - 8 lines]
> > cache by way of insert, why would the DS or DT have no rows when i
> > retrieve it back using get?
jw56578@gmail.com - 27 Apr 2005 00:17 GMT
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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.