Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 817
  • Last Modified:

Microsoft VBScript compilation error '800a03ea'

I am trying to us a session variable to ensure that URL's cannot be copied and posted into IE to get into the system without logging in, but I am getting teh following error:

Microsoft VBScript compilation error '800a03ea'

Syntax error

/studentmain.asp, line 5

If
--^

The code I am using is the following:

<%@LANGUAGE=VBSCRIPT%>
<%OPTION EXPLICIT%><!--#include file="Conn.asp"-->
<%

If
     Session("authoriseduser") = False or IsNull(Session("authoriseduser")) = True
     then
     Response.Redirect"login.asp"
     
End If

%>
0
snoopy21
Asked:
snoopy21
1 Solution
 
puranik_pCommented:
<%@LANGUAGE=VBSCRIPT%>
<%OPTION EXPLICIT%><!--#include file="Conn.asp"-->
<%

If Session("authoriseduser") = False or IsNull(Session("authoriseduser")) = True Then
    Response.Redirect"login.asp"
   
End If

0
 
fritz_the_blankCommented:
Puranik_p has it right.

Fritz the Blank
0
 
webwomanCommented:
Response.Redirect"login.asp"

You might want to fix this too, unless that's a typo.
Response.Redirect "login.asp"
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
lavinderCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

accept a comment - puranik_p
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
lavinder
EE Cleanup Volunteer
0
 
fritz_the_blankCommented:
Sounds good,

Fritz the Blank
0
 
puranik_pCommented:
                 :รด)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now