Home | Advertising Info74 USERS CURRENTLY ONLINE   
   Site Search Contact Us Saturday, August 02, 2014  
 
 


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



DISCUSSION ARCHIVES
 
Try a free httpZip trial now and compress for less!


We didn't realize
the site was so popular.

Other Stuff
 

 
 
Active Server Pages ASP a directory of ASP tutorials applications scripts components and articles for the novice to professional developer. CJWSoft ASPProtect ASPBanner ASPClassifieds



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




ASPProtect

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



 

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:

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

The Global asa file is:

<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Session_OnStart()
iCount = Application("counter")
iCount = iCount + 1
Application("counter") = iCount ' Global counter
Session("counter") = iCount ' User's copy of counter
End Sub
</SCRIPT>

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 - 2014 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 a directory of ASP tutorials applications scripts components and articles for the novice to professional developer. 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