Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to retrieve info from global.asa file ????

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi all, some of you may remember me, i have just bought and read the book, asp for dummies. What annoyes me about it, is not the fact that i read the book, but the fact that i bought the book...........!!!!
WHY???? well at the age of 7 i owned my very first computer, a bbc, then moved onto the spectrum, and the acorn electron, well i learned how to program them....... not bad at 7 years old, and i was creating complex programs when i was 10, gambling machines, card games, monopoly game, and others......
WELL WHY AM I ANNOYED ?
ASP IS THE SAME LANGUAGE, with slight changes, i have had the book now for 2 weeks, and considering when i started, i didnt understand the language, i can now program in pretty good, asp......i have already created several neet little programs, lol

OK I HAVE A QUESTION?????

the global.asa file, can contain information on anything that you need to do, now althought i have read the book, it does not cover the global asa file very well,
I am looking to create an accounting system using asp, as it is simple now that i understand the language, and i want to do everything through the global.asa file.
I know that this file is auto read and ran..
NOW if for instance i want to produce something on one page ie a customer list, which is produced by the global asa file, how do i get the information from one page to the other
Do i just ask for the basic variable or is their something different for example

GLOBAL.ASA

<%
dim test
test = 1
%>

TEST.ASP

<%
dim test1
test1= test
%>

would this work. or is their another way of doing it that i do not know of..... i am going to purchase an advanced book, but need help on this one for the time being..
if you can help i would be gratefull

Thanks in advance

keith Appleby
 
Nope,
U have to use
Session(&quot;var name&quot;) is for user(local variables) time variables each for everry user who get in your web
Application(&quot;var name&quot;) is for server time variables
for every user witch get in your web
GLOBAL.ASA

<%
'user enter in anny page
sub Session_OnLoad
set Session(&quot;test&quot;)=1
en sub

'user exit from your web (site)
sub Session_OnUnload
set Session(&quot;test&quot;)=nothing
end sub
%>

TEST.ASP

<%
dim test1
test1= Session(&quot;test&quot;)
%>
________
George, M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top