T
ThatsIT.net.au
Dim dis As System.Data.DataSet
If System.Web.HttpRuntime.Cache("search" & find) = "" Then
dis = oSearch.plainSearch(find, catelog, whereas)
System.Web.HttpRuntime.Cache("search" & find) = dis
Else
dis = CType(System.Web.HttpRuntime.Cache("search" & find),
System.Data.DataSet)
End If
This code returns a dataset from a web service, it works fine the first
time,
the second time it should return the dataset from cache, but never does.
At first I thought you may not be able to use ctype on a dataset, but
looking on the internet I find many examples of doing just that.
Any ideas why this code is not working
If System.Web.HttpRuntime.Cache("search" & find) = "" Then
dis = oSearch.plainSearch(find, catelog, whereas)
System.Web.HttpRuntime.Cache("search" & find) = dis
Else
dis = CType(System.Web.HttpRuntime.Cache("search" & find),
System.Data.DataSet)
End If
This code returns a dataset from a web service, it works fine the first
time,
the second time it should return the dataset from cache, but never does.
At first I thought you may not be able to use ctype on a dataset, but
looking on the internet I find many examples of doing just that.
Any ideas why this code is not working