Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - ASP and Memory
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ASP and Memory

 Post Reply Post Reply
Author
velkymx View Drop Down
Groupie
Groupie


Joined: 24 February 2003
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote velkymx Quote  Post ReplyReply Direct Link To This Post Topic: ASP and Memory
    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?
Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2004 at 12:53pm
It's called application variable,

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


Edited by fernan82
FeRnAN
Back to Top
velkymx View Drop Down
Groupie
Groupie


Joined: 24 February 2003
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote velkymx Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2004 at 12:54pm
Where do I declair it? 
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2004 at 1:01pm
You don't, think of it like a function. You use it like Fernan82 said.
Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2004 at 3:42pm
is very similar to cookies..
Back to Top
velkymx View Drop Down
Groupie
Groupie


Joined: 24 February 2003
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote velkymx Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2004 at 4:41pm
Thanks everyone!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.