D
darrel
This is a follow up to a semi-regular question I've had off and on.
The main question is how to get one set of variables from an XML file so
that various usercontrols on the page can all use them.
I've been playing with different options...using an interface, a function,
passing variables between controls, etc.
But it just occured to me that perhaps it would make sense just to have each
control that needs a value to read said value. Obviously, having each one
open the XML file to read through it would be a performance hit, but what if
I use a cache object? Cache each XML file and store it in memory until it is
refreshed on the server? Are there drawbacks to this approach?
-Darrel
The main question is how to get one set of variables from an XML file so
that various usercontrols on the page can all use them.
I've been playing with different options...using an interface, a function,
passing variables between controls, etc.
But it just occured to me that perhaps it would make sense just to have each
control that needs a value to read said value. Obviously, having each one
open the XML file to read through it would be a performance hit, but what if
I use a cache object? Cache each XML file and store it in memory until it is
refreshed on the server? Are there drawbacks to this approach?
-Darrel