Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 16th, 2006, 12:46 AM
Registered User
Join Date: Nov 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default About Global.asa

I am a ASP newbie i've read several articles about the functionality of global.asa file. But still little blurred on my side. just wanna ask master's out there to pls. give a good insight on this mysterios file. when to use? (industry standard). thanks hope somebody replies.

Reply With Quote
  #2 (permalink)  
Old November 20th, 2006, 12:03 PM
Friend of Wrox
Join Date: May 2006
Location: San Diego, CA, USA.
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts

Global.asa has several purposes, but its essential use is to provide a place where you can handle events that are global in nature. These events are the Application and Session on start and on end events, and give you a place to run code that can initialize and clean up variables and objects that are used by the rest of your asp pages. In other words, Global.asa is for things that are NOT at the Request level of your application. Your typical ASP pages deal with the request and response objects, and the Global.asa does not.

A typical example is to use Global.asa to keep track of the number of users on line by setting up a counter application variable in the Application_OnStart method, incrementing it on each Session_OnStart method, and decrementing it on each Session_OnEnd.

Woody Z http://www.learntoprogramnow.com
Reply With Quote
  #3 (permalink)  
Old December 4th, 2006, 12:40 AM
Registered User
Join Date: Nov 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

thanks woody

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Global.asa pushpa Classic ASP Basics 19 March 9th, 2007 08:30 AM
global.asa vin_0x1 Classic ASP Components 2 July 24th, 2006 01:13 AM
GLOBAL.ASA zaeem Classic ASP Databases 3 November 4th, 2003 09:13 AM
Global.asa madsmad ASP.NET 1.0 and 1.1 Basics 1 August 17th, 2003 07:05 PM

All times are GMT -4. The time now is 03:54 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.