Scope of a Public Module in a Web Environment

  • Thread starter Thread starter Ashish Shridharan
  • Start date Start date
A

Ashish Shridharan

Hi All

I have been tryign to figure out the scope of a module as
shown declared below in a web environment.

My Questions are

Is this module shared across multiple instances of the
application ??
What about variables declared in global scope of this
module ? How does asp.net treat something like that ?

Public Module modModuleName

Dim m_objDatabaseConnection as new sqlconnection
(connectionstring)
End Module


Any help would be appreciated

Thanks & Regards

Ashish Shridharan
 
A module is marked as shared in Visual Basic. The global information will
be shared across applications in a web application.

Thank you, John Soulis
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 
Back
Top