Scope of a Public Module in a Web Environment

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
 
J

John Soulis [MSFT]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top