IMy classic ASP app has a global.asa file in the root directory of the app 'SDT'.
I have set an application variable there:
<SCRIPT LANGUAGE=VBScri pt RUNAT=Server>
Sub Application_OnS tart
Application("st rEnv")= "Prod"
End Sub
</SCRIPT>
In an include page I try to retrieve the variable to detrmine data connections to be used:
Dim strApp
strApp = Application("st rEnv")
SELECT CASE strApp
Case "Dev"
<code>
Case "QA"
<code>
Case "Prod"
<code>
END SELECT
The problem is that the variable strApp is never populated.
What have I done wrong?
I have set an application variable there:
<SCRIPT LANGUAGE=VBScri pt RUNAT=Server>
Sub Application_OnS tart
Application("st rEnv")= "Prod"
End Sub
</SCRIPT>
In an include page I try to retrieve the variable to detrmine data connections to be used:
Dim strApp
strApp = Application("st rEnv")
SELECT CASE strApp
Case "Dev"
<code>
Case "QA"
<code>
Case "Prod"
<code>
END SELECT
The problem is that the variable strApp is never populated.
What have I done wrong?
Comment