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

V

Vince C.

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.
 
V

Vince C.

"Andrew Urquhart" <[email protected]> a écrit dans le message de
[...]
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,146
Messages
2,570,832
Members
47,374
Latest member
anuragag27

Latest Threads

Top