Print Page | Close Window

ASP and Memory

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=9324
Printed Date: 01 April 2026 at 1:00am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: ASP and Memory
Posted By: velkymx
Subject: ASP and Memory
Date Posted: 28 January 2004 at 12:48pm
I am currently trying to cut down the database access in my web application. Is there a way to load certain elements of my application into system memory and then call them from there? Like a global variable?



Replies:
Posted By: fernan82
Date Posted: 28 January 2004 at 12:53pm
It's called application variable,

Application("myvar") = "this"
Response.Write(Application("myvar"))


-------------
FeRnAN
http://www.danasoft.com/">


Posted By: velkymx
Date Posted: 28 January 2004 at 12:54pm
Where do I declair it? 


Posted By: Mart
Date Posted: 28 January 2004 at 1:01pm
You don't, think of it like a function. You use it like Fernan82 said.


Posted By: fernan82
Date Posted: 28 January 2004 at 1:02pm
Don't need to declare it, just create it like I did above.

You could create it on your global.asa file on Sub Application_OnStart


-------------
FeRnAN
http://www.danasoft.com/">


Posted By: Semikolon
Date Posted: 28 January 2004 at 3:42pm
is very similar to cookies..


Posted By: velkymx
Date Posted: 28 January 2004 at 4:41pm
Thanks everyone!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net