J
jopek
pardon the simple question
I am just getting into ASP and i am having a bit of a problem.
If I set variables in the Application_OnStart() in the global.asa which
is run on the server and then I try to display or use the variables in a
page the variables do not seem to exist.
I get the same problem even if I run examples from the wrox ProAsp 3.0
book.
An example would be:
in global.asa or within test.asp
<% LANGUANGE="VBScript" runat="server" %>
<Script>
sub Application_onStart()
Application("Name") = "test"
end sub
</Script>
test.asp
..
..
..
<H1> Application Name: <% = Application("Name") %> </H>
..
..
..
The only thing displayed is the "Application Name:"
Is this a configuration problem?
thank you for your help
john
I am just getting into ASP and i am having a bit of a problem.
If I set variables in the Application_OnStart() in the global.asa which
is run on the server and then I try to display or use the variables in a
page the variables do not seem to exist.
I get the same problem even if I run examples from the wrox ProAsp 3.0
book.
An example would be:
in global.asa or within test.asp
<% LANGUANGE="VBScript" runat="server" %>
<Script>
sub Application_onStart()
Application("Name") = "test"
end sub
</Script>
test.asp
..
..
..
<H1> Application Name: <% = Application("Name") %> </H>
..
..
..
The only thing displayed is the "Application Name:"
Is this a configuration problem?
thank you for your help
john