home *** CD-ROM | disk | FTP | other *** search
/ Using Visual Basic 5 (Platinum Edition) / vb5.iso / Code / ch33 / global.asa < prev    next >
Encoding:
Text File  |  1997-07-07  |  1.4 KB  |  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("PlatVB5_ConnectionString") = "DSN=PlatVB5;SERVER=SoftCoyote;UID=sa;PWD=wlfhwlfh;APP=Microsoft (R) Developer Studio;WSID=SOFTCOYOTE;DATABASE=PlatVB5"
  23.         Session("PlatVB5_ConnectionTimeout") = 15
  24.         Session("PlatVB5_CommandTimeout") = 30
  25.         Session("PlatVB5_RuntimeUserName") = "sa"
  26.         Session("PlatVB5_RuntimePassword") = "wlfhwlfh"
  27.     '==Visual InterDev Generated - DataConnection endspan==
  28. End Sub
  29. </SCRIPT>
  30.