Forums

This topic is locked

Using Sessions with PureUpload 3 - Syntax error

Posted 27 Mar 2007 22:24:10
1
has voted
27 Mar 2007 22:24:10 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"=0 then
response.write "No Errors"
else
Session("Errors"="0"
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 27 Mar 2007 23:01:20
27 Mar 2007 23:01:20 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>
Replied 15 Apr 2009 16:36:14
15 Apr 2009 16:36:14 loz howlett replied:
this is incorrect - its because you opened an IF statement without end if, thus causing the syntax error with the class.

Reply to this topic