Home | Advertising Info50 USERS CURRENTLY ONLINE   
   Site Search Contact Us Saturday, June 23, 2018  

User Management Application with web based screens that allow you to manage users.
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.


We didn't realize
the site was so popular.

Other Stuff

vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds

(Advanced)  (Components)  (Database)  (General)  (Vbscript)


Subject: Global.asa file and ASP applications
From: Keith Engelhardt
Date: 3/5/1999 11:27:09 AM


According to Microsoft's on-line literature, To make the Application and Session object work in ASP, you use a single file named global.asa for each 'application'. This file resides in the directory on the server that is the root of that application—i.e. where the files that make up the application are located. When the first user accesses a file in the application, the Application_onStart event is triggered. This is used to initialize any application-wide global variables. When the user begins a session for the first time, the Session_onStart event is triggered.

I have create a brief test application. the only page in the application is:

<title> Test Counter</title>
You are visitor number <%=Session("counter")%>
out of <%=Application("Counter")%>.

The Global asa file is:

Sub Session_OnStart()
iCount = Application("counter")
iCount = iCount + 1
Application("counter") = iCount ' Global counter
Session("counter") = iCount ' User's copy of counter
End Sub

Both reside in the application's virtual root directory.

When the page is accessed it does't work. I have tried several examples of simple apps an and none seem to execute anything in the global.asa

I don't now what I am doing wrong! In every example I have seen the concept seem pretty basic. Does something have to be enabled on the server for the global.asa to be active?

Can any off assistance?

Follow Up - Re: Global.asa file and ASP applications - Chris Williams 3/6/1999 10:21:49 AM


   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2018 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com