B
Brian Bender
I am trying to write a static utility class that allows me to modify
Application variables in my web application.
My problem is that I cannot figure out what to import or inherit to
allow me to see application objects or even the server object.
Here is my code:
Public Shared RefreshCachedXMLDatasets()
Dim dsLinks As New DataSet()
'-- Cached XML Menu
dsLinks = New DataSet()
dsLinks.ReadXml(Server.MapPath(Utilities.GetConfigValue("XMLMenuFilename",
"")))
Application("CACHED_XML_MENU") = dsLinks
'-- Cached Portfolio
dsLinks = New DataSet()
dsLinks.ReadXml(Server.MapPath(Utilities.GetConfigValue("XMLPortfolioFilename",
"")))
Application("CACHED_XML_PORTFOLIO") = dsLinks
End Sub
The application object or server object do not exsist.
Any Suggestions?
Application variables in my web application.
My problem is that I cannot figure out what to import or inherit to
allow me to see application objects or even the server object.
Here is my code:
Public Shared RefreshCachedXMLDatasets()
Dim dsLinks As New DataSet()
'-- Cached XML Menu
dsLinks = New DataSet()
dsLinks.ReadXml(Server.MapPath(Utilities.GetConfigValue("XMLMenuFilename",
"")))
Application("CACHED_XML_MENU") = dsLinks
'-- Cached Portfolio
dsLinks = New DataSet()
dsLinks.ReadXml(Server.MapPath(Utilities.GetConfigValue("XMLPortfolioFilename",
"")))
Application("CACHED_XML_PORTFOLIO") = dsLinks
End Sub
The application object or server object do not exsist.
Any Suggestions?