Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Global.ASA question

Status
Not open for further replies.

Dynapen

Programmer
Apr 20, 2000
245
US
I have a sample site for a software package, that uses some fairly extensive code in the Global.ASA.

The problem is this, there is a page later in the site that references a Application object that IS NOT created in the global.asa

My understanding is that all Application level objects have to be instantiaed in the ASA even though you can change the value of them in later pages. Am I wrong, or is this sample site just bad code? The money's gone, the brain is shot.....but the liquor we still got.
 
As far as I know, application wide objects have to be instantiated in the global.asa.

You can get around this by creating objects in a seperate asp page and then doing an include of that page in whatever pages you want to use that object in. But it isn't a true application wide object. It is created and destroyed as you go from page to page.

Hope this helps.
 
That's what I thought. It's just that this means that Microsoft really did screw up and they don't know what they are doing, or I got a bad download of the code.

The money's gone, the brain is shot.....but the liquor we still got.
 
uuuummmmm....I would tend to lean in the direction of "screw up".

:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top