Forums
This topic is locked
Using Sessions with PureUpload 3 - Syntax error
18 years ago M. Stan posted:
If I try to use sessions on pages where I'm using PureUpload 3, I get the following error:<pre id=code><font face=courier size=2 id=code>Microsoft VBScript compilation error '800a03ea'
Syntax error
E:\INETPUB\testsite\_ADMIN\../ScriptLibrary/incPU3Class.asp, line 18
Class PureUpload
</font id=code></pre id=code>
Here is the code that when used on the page generates the above error:
<pre id=code><font face=courier size=2 id=code>
if Session("Errors"

response.write "No Errors"
else
Session("Errors"

response.write "Grrrr"
</font id=code></pre id=code>
If I remove the code, then page works fine. Any advice is greatly appreciated.
Thanks,
Matt
Edited by - mattboy_slim on 27 Mar 2007 23:01:55
Replies
Replied 18 years ago
18 years ago M. Stan replied:
Update:
Seems the code causing the problem is the initial "If" statement:
If I comment out the "If" statement (see below) then I do not get the Syntax Error
<pre id=code><font face=courier size=2 id=code>
'if Session("Errors"
=0 then
response.write "No Errors"
'else
Session("Errors"
="0"
response.write "Grrrr"
</font id=code></pre id=code>
Seems the code causing the problem is the initial "If" statement:
If I comment out the "If" statement (see below) then I do not get the Syntax Error
<pre id=code><font face=courier size=2 id=code>
'if Session("Errors"

response.write "No Errors"
'else
Session("Errors"

response.write "Grrrr"
</font id=code></pre id=code>
Replied 16 years ago
16 years ago loz howlett replied:
this is incorrect - its because you opened an IF statement without end if, thus causing the syntax error with the class.