469,275 Members | 1,717 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

Can i get to the application object in a class

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

........

Jul 22 '05 #1
1 993
Murray Jack wrote:
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

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Google Mike | last post: by
11 posts views Thread by Timothy Shih | last post: by
6 posts views Thread by Ollie Riches | last post: by
3 posts views Thread by Sushil Srivastava | last post: by
4 posts views Thread by Keith Chadwick | last post: by
8 posts views Thread by Vishwanathan Raman | last post: by
5 posts views Thread by Gav | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.