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_OnS tart() 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="VBSc ript" runat="server" %>
<Script>
sub Application_onS tart()
Application("Na me") = "test"
end sub
</Script>
test.asp
..
..
..
<H1> Application Name: <% = Application("Na me") %> </H>
..
..
..
The only thing displayed is the "Applicatio n 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_OnS tart() 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="VBSc ript" runat="server" %>
<Script>
sub Application_onS tart()
Application("Na me") = "test"
end sub
</Script>
test.asp
..
..
..
<H1> Application Name: <% = Application("Na me") %> </H>
..
..
..
The only thing displayed is the "Applicatio n Name:"
Is this a configuration problem?
thank you for your help
john
Comment