Strange "Expected '('" Error 
Author Message
 Strange "Expected '('" Error

Hi all,

I'm having a problem with a page that I have on an internal website that I
host. The page loads fine, except for the fact that I get a "Expected '('"
at line 7, column 4 from IE. It makes no sense to me, because the code
appears to be just fine. Does anyone have any insight to what the problem
may be?
Code posted below, Thanks in advance.

--Derek Correia

---------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<%
if request("kbsec") = "LOGGED" then session("kbsec") = "LOGGED"
if session("kbsec") <> "LOGGED" then
Response.Redirect("/kbase/nosession.asp")
%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Knowledgebase</title>
<LINK REL=stylesheet HREF="inc/custom/style.css">
</head>
<body>
................



Sat, 28 Aug 2004 03:16:10 GMT  
 Strange "Expected '('" Error
If IE (as opposed to the ASP engine) is reporting the problem then the error would on line 7 (maybe 8 - IE has a problem counting ;-) of **client side** script.  You don't indicate that there is any client script on the page...

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--

Quote:

> Hi all,

> I'm having a problem with a page that I have on an internal website that I
> host. The page loads fine, except for the fact that I get a "Expected '('"
> at line 7, column 4 from IE. It makes no sense to me, because the code
> appears to be just fine. Does anyone have any insight to what the problem
> may be?
> Code posted below, Thanks in advance.

> --Derek Correia

> ---------------------------------

> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> <%
> if request("kbsec") = "LOGGED" then session("kbsec") = "LOGGED"
> if session("kbsec") <> "LOGGED" then
> Response.Redirect("/kbase/nosession.asp")
> %><html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
> <title>Knowledgebase</title>
> <LINK REL=stylesheet HREF="inc/custom/style.css">
> </head>
> <body>
> ................



Sat, 28 Aug 2004 03:40:15 GMT  
 Strange "Expected '('" Error
Try removing the "(" and ")" from Response.Redirect... Maybe it will work :)
Also, is this the entire page?  Either way, client side or server side,
there is no line 7 or 8.

Mythran

Quote:
> Hi all,

> I'm having a problem with a page that I have on an internal website that I
> host. The page loads fine, except for the fact that I get a "Expected '('"
> at line 7, column 4 from IE. It makes no sense to me, because the code
> appears to be just fine. Does anyone have any insight to what the problem
> may be?
> Code posted below, Thanks in advance.

> --Derek Correia

> ---------------------------------

> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> <%
> if request("kbsec") = "LOGGED" then session("kbsec") = "LOGGED"
> if session("kbsec") <> "LOGGED" then
> Response.Redirect("/kbase/nosession.asp")
> %><html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
> <title>Knowledgebase</title>
> <LINK REL=stylesheet HREF="inc/custom/style.css">
> </head>
> <body>
> ................



Sat, 28 Aug 2004 05:04:35 GMT  
 Strange "Expected '('" Error
My apologies to all. I have found the problem!
I had an invalid entry in my CSS, and for some reason it was reporting the
error on the page as opposed to the style sheet!
Many thanks to all who replied,

-Derek


Quote:
> Try removing the "(" and ")" from Response.Redirect... Maybe it will work
:)
> Also, is this the entire page?  Either way, client side or server side,
> there is no line 7 or 8.

> Mythran


> > Hi all,

> > I'm having a problem with a page that I have on an internal website that
I
> > host. The page loads fine, except for the fact that I get a "Expected
'('"
> > at line 7, column 4 from IE. It makes no sense to me, because the code
> > appears to be just fine. Does anyone have any insight to what the
problem
> > may be?
> > Code posted below, Thanks in advance.

> > --Derek Correia

> > ---------------------------------

> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> > <%
> > if request("kbsec") = "LOGGED" then session("kbsec") = "LOGGED"
> > if session("kbsec") <> "LOGGED" then
> > Response.Redirect("/kbase/nosession.asp")
> > %><html>
> > <head>
> > <meta http-equiv="Content-Type" content="text/html;

charset=windows-1252">

- Show quoted text -

Quote:
> > <title>Knowledgebase</title>
> > <LINK REL=stylesheet HREF="inc/custom/style.css">
> > </head>
> > <body>
> > ................



Sat, 28 Aug 2004 05:47:02 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. strange errormessage ('END expected')

2. What's ".error"?

3. "expected type" error at compile time

4. Expected "If" Statement error

5. "Expected statement" error

6. JScript error "Expected ;"

7. Replace(strEntity,"'","''") doubles single quotes in database

8. I am getting "Run-time error '3061': Too few parameters. Expected 1."

9. Error "429 "can't create ActiveX component

10. Error "429 "can't create ActiveX component

11. SQL with an "'" gives error

12. Strange error: "Cannot retrieve referenced URL..."

 

 
Powered by phpBB® Forum Software