Global variable in ASP 3.0

Discussion in 'ASP General' started by Dave, Dec 10, 2005.

  1. Dave

    Dave Guest

    In classic ASP (ASP 3.0), can I create a variable in global.asa and
    reference it from other pages in my web app? If so, how?

    So far it appears that anything I create in Application_onStart() is not
    visible from other pages.
    Dave, Dec 10, 2005
    #1
    1. Advertising

  2. Dave

    Evertjan. Guest

    Dave wrote on 10 dec 2005 in microsoft.public.inetserver.asp.general:

    > In classic ASP (ASP 3.0), can I create a variable in global.asa and
    > reference it from other pages in my web app? If so, how?
    >
    > So far it appears that anything I create in Application_onStart() is
    > not visible from other pages.
    >


    Use an application variable.

    <http://www.google.com/search?q=asp+application.variable>

    --
    Evertjan.
    The Netherlands.
    (Replace all crosses with dots in my emailaddress)
    Evertjan., Dec 10, 2005
    #2
    1. Advertising

  3. Dave

    Dave Guest

    Thank you Evertjan

    That link took me to a very helpful ASP site:
    http://www.w3schools.com/asp/asp_globalasa.asp

    Dave


    "Evertjan." <> wrote in message
    news:Xns972862FE69FCBeejj99@194.109.133.242...
    > Dave wrote on 10 dec 2005 in microsoft.public.inetserver.asp.general:
    >
    >> In classic ASP (ASP 3.0), can I create a variable in global.asa and
    >> reference it from other pages in my web app? If so, how?
    >>
    >> So far it appears that anything I create in Application_onStart() is
    >> not visible from other pages.
    >>

    >
    > Use an application variable.
    >
    > <http://www.google.com/search?q=asp+application.variable>
    >
    > --
    > Evertjan.
    > The Netherlands.
    > (Replace all crosses with dots in my emailaddress)
    >
    Dave, Dec 10, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bryan Parkoff
    Replies:
    2
    Views:
    6,480
  2. Replies:
    1
    Views:
    378
    Michael Ekstrand
    Aug 21, 2005
  3. Mohanasundaram
    Replies:
    44
    Views:
    1,048
    Keith Thompson
    Aug 24, 2004
  4. sairam
    Replies:
    2
    Views:
    358
    Steve Holden
    Apr 5, 2007
  5. jubelbrus
    Replies:
    5
    Views:
    602
    JohnQ
    Jul 20, 2007
Loading...

Share This Page