D
darrel
I'm accessing an XML file several times on a page, and, as such, want to
cache it.
I'm setting it up as such:
if cache("xmlFile") is nothing then...
load file
cache file
else
read it
end if
This works fine in my codebehind, but I'm trying to move this out into a
standalone class so I can call it from various usercontrols. When I do this,
I get an error of "name 'cache' is not declared?'
Is this a namespace issue? I don't declare a more specific namespace in my
codebehind page that uses it (other than System.Web.UI.UserControl), so I'm
confused as to what namespace is missing.
-Darrel
cache it.
I'm setting it up as such:
if cache("xmlFile") is nothing then...
load file
cache file
else
read it
end if
This works fine in my codebehind, but I'm trying to move this out into a
standalone class so I can call it from various usercontrols. When I do this,
I get an error of "name 'cache' is not declared?'
Is this a namespace issue? I don't declare a more specific namespace in my
codebehind page that uses it (other than System.Web.UI.UserControl), so I'm
confused as to what namespace is missing.
-Darrel