L
Lord Merlin
When using "if then" statements in global, I get the following error:
a.. Error Type:
(0x8002802B)
Element not found.
//global.asa, line 12
Can I use if then statements in global?
Here is the statement:
if request.ServerVariables("HTTP_HOST") = "localhost" then
Application("question") = "Provider=SQLOLEDB.1;Persist Security
Info=False;User ID='********';'Password='***********';Initial
Catalog='******';Data Source=localhost"
else
Application("question") = "Provider=SQLOLEDB.1;Persist Security
Info=False;User ID='**********';Password='**********';Initial
Catalog='*****';Data Source=<remote-host>"
end if
--
Kind Regards
Rudi Ahlers
+27 (82) 926 1689
Greater love has no one than this, that he lay down his life for his friends
(John 15:13).
a.. Error Type:
(0x8002802B)
Element not found.
//global.asa, line 12
Can I use if then statements in global?
Here is the statement:
if request.ServerVariables("HTTP_HOST") = "localhost" then
Application("question") = "Provider=SQLOLEDB.1;Persist Security
Info=False;User ID='********';'Password='***********';Initial
Catalog='******';Data Source=localhost"
else
Application("question") = "Provider=SQLOLEDB.1;Persist Security
Info=False;User ID='**********';Password='**********';Initial
Catalog='*****';Data Source=<remote-host>"
end if
--
Kind Regards
Rudi Ahlers
+27 (82) 926 1689
Greater love has no one than this, that he lay down his life for his friends
(John 15:13).