Can i get to the application object in a class

M

Murray Jack

Hi

I am trying to get to the application object from a seperate class in my ASP
application and I dont want to pass the object in as the class is inherited
to lots of other classes. So i can have something like the following

Imports System.Web.UI.WebControls.DataGrid

Namespace Classes.Inheritable
Public MustInherit Class EntityCollection

Implements IDisposable

Private mobjDataConnection As Classes.Databases.DBConnection

Public Sub New(ByVal strSQL As String)
mobjDataConnection = Application("DataConnection")
End sub

........
 
B

Bob Barrows [MVP]

Murray said:
Hi

I am trying to get to the application object from a seperate class in
my ASP application and I dont want to pass the object in as the class
is inherited to lots of other classes. So i can have something like
the following

Imports System.Web.UI.WebControls.DataGrid

Again, this is the wrong place. Most of us in this newsgroup are still using
classic ASP.

There is a reason for having newsgroups focussed on specific topics. You
will find yourself getting kill-filed by the people whose help you wish to
receive if you persist in posting off-topic messages. I'm not playing net
cop here: I know I can't tell you where and what to post. I'm just advising
you of the potential consequences of ignoring basic netiquette.You may get
short-term results from ignoring netiquette, but in the long run, you will
find your questions falling on deaf ears.

Bob Barrows
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,008
Latest member
HaroldDark

Latest Threads

Top