Results 1 to 2 of 2

Thread: Global.asa example?

  1. #1

    Thread Starter
    Addicted Member wernerh's Avatar
    Join Date
    Sep 2000
    Posts
    170

    Global.asa example?

    Does anyone have a global.asa example page where a connection to a sql database is oppened and the variables declared??

    pls help

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    here's an example :

    Code:
    <script language="vbscript" runat=server>
    Sub Session_OnStart
    	'Shopping cart array
    	Const cartAttributes = 5
    	Const maxCartItems = 10
    	ReDim arrcart(cartAttributes,maxCartItems)
    
    	Session("MyCart") = arrcart
    	Session("cartItem") = 0
    End Sub
    </script>
    this was for a shopping cart we made!

    but you can put your connection in there!!

    p.s. remember, your global.asa HAS to be on the root of your web site!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width