home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1999 October / VPR9910A.BIN / WIN98SP1 / IE401.SP2 / ieak4.cab / global.asa < prev    next >
Text File  |  1999-03-17  |  1KB  |  30 lines

  1. <SCRIPT LANGUAGE="VBScript" RUNAT="Server">
  2.  
  3. 'You can add special event handlers in this file that will get run automatically when special Active Server Pages events
  4. 'occur.  To create these handlers, just create a subroutine with a name from the list below that corresponds to the event
  5. 'you want to use.  For example, to create an event handler for Session_OnStart, you would put the following code into this
  6. 'file (without the comments):
  7. 'Sub Session_OnStart
  8. '**Put your code here **
  9. 'End Sub
  10.  
  11. 'EventName               Description
  12. 'Session_OnStart      Runs the first time a user runs any page in your application
  13. 'Session_OnEnd       Runs when a user's session times out or quits your application
  14. 'Application_OnStart  Runs once when the first page of your application is run for the first time by any user
  15. 'Application_OnEnd   Runs once when the web server shuts down
  16.  
  17. </SCRIPT>
  18. <SCRIPT LANGUAGE=VBScript RUNAT=Server>
  19. Sub Session_OnStart
  20.     '==Visual InterDev Generated - DataConnection startspan==
  21.     '--Project Data Connection
  22.         Session("DataConn_ConnectionString") = "DSN=AutoCFG;DBQ=C:\InetPub\autocfg.mdb;DriverId=25;FIL=MS Access;MaxBufferSize=512;PageTimeout=5;"
  23.         Session("DataConn_ConnectionTimeout") = 15
  24.         Session("DataConn_CommandTimeout") = 30
  25.         Session("DataConn_RuntimeUserName") = ""
  26.         Session("DataConn_RuntimePassword") = ""
  27.     '==Visual InterDev Generated - DataConnection endspan==
  28. End Sub
  29. </SCRIPT>
  30.