T
Thomas
Hi,
I want to share a function in an application, so that in global asax or
pages can use that function like:
Dim sMyVariable = MyApplication.GetSomething("SomeKey")
How do I access a global application instance?
Is it advisable to store database connections in a global application
instance, and expose them as Properties eg
Dim sMyVariable = MyApplication.MyConnection.ExecuteNonQuery()?
Dim sMyOtherVariable = MyApplication.MyOtherConnection.ExecuteNonQuery()?
Thomas
I want to share a function in an application, so that in global asax or
pages can use that function like:
Dim sMyVariable = MyApplication.GetSomething("SomeKey")
How do I access a global application instance?
Is it advisable to store database connections in a global application
instance, and expose them as Properties eg
Dim sMyVariable = MyApplication.MyConnection.ExecuteNonQuery()?
Dim sMyOtherVariable = MyApplication.MyOtherConnection.ExecuteNonQuery()?
Thomas