Can I use JavaScript in global.asa for Application and Session events?

Discussion in 'ASP General' started by Vince C., Apr 3, 2004.

  1. Vince C.

    Vince C. Guest

    Hi.

    Until now I've only seen VBScript to handle application and session events (e.g.
    Application_OnStart, Session_OnStart). Is it possible to do this directly in
    JavaScript or do I have to write VBScript proxies?

    Thanks,
    Vince C.
    Vince C., Apr 3, 2004
    #1
    1. Advertising

  2. Vince C.

    Vince C. Guest

    "Andrew Urquhart" <> a écrit dans le message de
    news:68Cbc.276$...
    [...]
    > Yes you can write your global.asa in any language that falls under the
    > ASP umbrella. E.g.:
    >
    > <script language="JScript" runat="Server">
    > function Application_OnStart() {
    > }
    >
    > function Application_OnEnd() {
    > }
    >
    > function Session_OnStart() {
    > }
    >
    > function Session_OnEnd() {
    > }
    > </script>


    Cool! I thought function names would have had to be different since I know the
    underscore is a syntax particular to Visual Basic (Script) event handlers.

    Thanks again.

    Vince C.
    Vince C., Apr 3, 2004
    #2
    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. Wayne
    Replies:
    2
    Views:
    456
    Wayne
    Nov 11, 2003
  2. Raghu
    Replies:
    1
    Views:
    4,014
    Raghu
    Feb 17, 2005
  3. Chris

    Session Start in Global.asa

    Chris, Jul 12, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    511
    Hans Kesting
    Jul 13, 2006
  4. Amit D.Shinde
    Replies:
    2
    Views:
    181
    Bã§TãRÐ
    Jul 27, 2004
  5. Noozer
    Replies:
    3
    Views:
    407
    Noozer
    Jul 19, 2005
Loading...

Share This Page