check that the loginfile does not have any trailing spaces as it must match
exactly, output
the result of GetTemplatePath() and paste it back into your code to be sure.
HTH
Kola
-----Original Message-----
From: Redd Liao [mailto:[EMAIL PROTECTED]]
Sent: 22 March 2001 23:34
To: CF-Server
Subject: GetTemplatePath()
hi,
I use IIS on Win 2000.
In my cfm file:
I set LoginFile = "C:\Inetpub\wwwroot\cyvdb\index.cfm"
then I use "IF" :
<cfif NOT #GetTemplatePath()# IS "#LoginFile#">
.........
<cflocation url="index.cfm" addtoken="no">
.........
</cfif>
Question:
I am 100% sure that #GetTemplatePath()# = #LoginFile#,
but it always re-director the page to index.cfm
that means that #GetTemplatePath()# is not #LoginFile#,
but I am 100% sure that #GetTemplatePath()# = #LoginFile#,
I use UCase(), Lcase(), LTrim() and RTrim(). It still doesn't work.
What should I do? Thanks in advance.
Redd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com