Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pws question - Application_OnStart not firing

Status
Not open for further replies.

hinchdog

Programmer
Feb 14, 2001
380
US

i'm running pws on windows 98 and i can't seem to get the application_onStart event to fire when i restart the web server. this sucks! does anyone know a trick to getting this to work for pws???

function Application_OnStart ( )
{
blah blah blah
}
 
The Application_OnStart fires for each application when that application starts i.e. first execution of an ASP in that application. The OnStart is in the each applications's global.asa.
Here is the default global.asa I get with InterDev 6.0.
Code:
<SCRIPT LANGUAGE=VBScript RUNAT=Server>

'You can add special event handlers in this file that will get run automatically when
'special Active Server Pages events occur. To create these handlers, just create a
'subroutine with a name from the list below that corresponds to the event you want to
'use. For example, to create an event handler for Session_OnStart, you would put the
'following code into this file (without the comments):

'Sub Session_OnStart
'**Put your code here **
'End Sub

'EventName              Description
'Session_OnStart        Runs the first time a user runs any page in your application
'Session_OnEnd          Runs when a user's session times out or quits your application
'Application_OnStart    Runs once when the first page of your application is run for the first time by any user
'Application_OnEnd      Runs once when the web server shuts down

</SCRIPT>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top