Please show me where to place public variables in my web application

dominico

Well-known member
Joined
Mar 9, 2005
Messages
57
Programming Experience
3-5
I need help with making variables public so they can be seen everywhere in my web application.

Below are my three database connection variables:

Dim oConn AsNew OleDbConnection(ConfigurationSettings.AppSettings("dsn"))

Dim oCmd As OleDbCommand

Dim oDR As OleDbDataReader


How and Where do I place these variables so that all my web pages of my website can access it without redeclaring them again and again in every webpage.

Please advise me.

Many thanks in advance.

dominico
 
Back
Top