C
Craig G
im having my first play about with caching a dataset but seem to be having some problems in doing so!!
basically i have a dataset which i add to the cache as follows
Cache.Insert("myDS", dsResults, Nothing, DateTime.Now.AddMinutes(5), TimeSpan.Zero)
i then have a select button which i click so that the page is reloaded. so that i can only get the dataset from the cache
but when i do the following
dsResults = New DataSet
dsResults = Cache.Item("myDS")
i get Referenced object has a value of 'Nothing'.
what am i doing wrong??
Cheers,
Craig
basically i have a dataset which i add to the cache as follows
Cache.Insert("myDS", dsResults, Nothing, DateTime.Now.AddMinutes(5), TimeSpan.Zero)
i then have a select button which i click so that the page is reloaded. so that i can only get the dataset from the cache
but when i do the following
dsResults = New DataSet
dsResults = Cache.Item("myDS")
i get Referenced object has a value of 'Nothing'.
what am i doing wrong??
Cheers,
Craig