T
trebor
I added a couple of class files to a VS web project, and I can't access
the application object from inside them. The system treats them like
undeclared variables. Is there an Imports I have to use?
The value that I need global to the entire project is the oleDB
connection string ("Provider=.... Data Source=C:\...").
What I've done in the meanwhile is declare a shared property in each of
the classes to hold this value. When the application starts, I set the
property from the global.asax.vb file. This works, but is it a real
hack?
Is there a better way to establish global constants in VS web projects?
the application object from inside them. The system treats them like
undeclared variables. Is there an Imports I have to use?
The value that I need global to the entire project is the oleDB
connection string ("Provider=.... Data Source=C:\...").
What I've done in the meanwhile is declare a shared property in each of
the classes to hold this value. When the application starts, I set the
property from the global.asax.vb file. This works, but is it a real
hack?
Is there a better way to establish global constants in VS web projects?