home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 March / Chip_1999-03_cd.bin / nebylo / ASP / global.asa < prev    next >
Text File  |  1999-02-09  |  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("firma_ConnectionString") = "DRIVER={SQL Server};SERVER=(local);UID=firma;PWD=asdfg;APP=Microsoft (R) Developer Studio;WSID=AMADEUS;DATABASE=firma"
  23.         Session("firma_ConnectionTimeout") = 15
  24.         Session("firma_CommandTimeout") = 30
  25.         Session("firma_RuntimeUserName") = "firma"
  26.         Session("firma_RuntimePassword") = "asdfg"
  27.     '==Visual InterDev Generated - DataConnection endspan==
  28. End Sub
  29. </SCRIPT>
  30.