Can if statements be used in global.asa?

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Lord Merlin (SPAM_LordMerlin_at_Bonzai.org.za_SPAM)
Date: 06/20/04


Date: Sun, 20 Jun 2004 20:59:09 +0200

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).


Relevant Pages

  • Re: can ASP check if an object is an integer?
    ... Greater love has no one than this, that he lay down his life for his friends ... "Steven Burn" wrote in message ...
    (microsoft.public.inetserver.asp.general)
  • Re: regexing through numbers?
    ... Greater love has no one than this, that he lay down his life for his friends ... What kind of database? ...
    (microsoft.public.inetserver.asp.general)
  • Re: Muslim martyrs win praise at rally
    ... love than this, that he lay down his life for his friends", and "Dulce ... But if a Muslim says it, it's evil. ... There is a subtle difference between lying down your life for your friends ...
    (uk.legal)
  • Re: New epg has arrived
    ... Greater love hath no man than this, that he lay down his friends for his life. ... (Jeremy Thorpe, 1962) ...
    (uk.tech.tv.sky)
  • script works on test PC, not on ISP server?
    ... The following script work perfectly well on my PC at home, yet when I upload ... Greater love has no one than this, that he lay down his life for his friends ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)