Solved

Invalid character

Posted on 2004-04-01
9
1,934 Views
Last Modified: 2013-12-03
I received such error:
Error Type:
Microsoft VBScript compilation (0x800A0408)
Invalid character
school_new_step_3.asp, line 133, column 22

Succeed(class_list.asp?schooluuid="&schoolid&"&prov="&xProvince&"&area="&xAreaid&","")
----------------------------------------------------^

8888888888888888888888888888888888888888888888888888888888888888888888888888
<%
xProvince=trim(request.form("prov"))
xAreaid=trim(request.form("area"))
schoolid=cstr(xAreaid&"000"&seed)

Succeed("class_list.asp?schooluuid="&schoolid&"&prov="&xProvince&"&area="&xAreaid&"","")
--------------> ERROR LINE


Sub Succeed(refreshurl,sucmsg)
Response.Write _
"<meta http-equiv=""refresh"" content=""1;URL="&refreshurl&""">"&_
"<div align=""center"" style=""font-size:9pt""><table cellpadding=0 cellspacing=1 border=0 width=600  bgcolor=#ce0000><tr><th height=25> * Succeed Message</th></tr><tr><td bgcolor=#ffffff  height=30> <b>Succeed:</b><br>"&sucmsg&"</td></tr></table></div>"
End Sub
%>
0
Comment
Question by:edonkey
  • 2
  • 2
  • 2
  • +2
9 Comments
 
LVL 15

Expert Comment

by:deighc
ID: 10731672
Try:

Succeed("class_list.asp?schooluuid=" & schoolid & "&prov=" & xProvince & "&area=" & xAreaid,"")
0
 
LVL 4

Accepted Solution

by:
JNSTAUB earned 350 total points
ID: 10731698
try
Succeed("class_list.asp?schooluuid=" +  schoolid +"&prov=" + xProvince +"&area="+ xAreaid ,  "blabla")
you may also try server.urlencode (schoolid) instead of schoolid an dso one for each variable.
0
 
LVL 3

Expert Comment

by:rajuare
ID: 10731730
Try this
Succeed(class_list.asp?schooluuid=" & schoolid & " prov=" & xProvince & "area=" & xAreaid & ","")
0
 
LVL 35

Expert Comment

by:YZlat
ID: 10731777
deighc got it
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Author Comment

by:edonkey
ID: 10731792
deighc:
Error Type:
Microsoft VBScript compilation (0x800A0414)
Cannot use parentheses when calling a Sub
/class/school_new_step_3.asp, line 133, column 95
Succeed("class_list.asp?schooluuid=" & schoolid & "&prov=" & xProvince & "&area=" & xAreaid,"")
----------------------------------------------------------------------------------------------^

JNSTAUB:
Error Type:
Microsoft VBScript compilation (0x800A0414)
Cannot use parentheses when calling a Sub
/class/school_new_step_3.asp, line 133, column 102
Succeed("class_list.asp?schooluuid=" + schoolid +"&prov=" + xProvince +"&area="+ xAreaid , "blabla")
-----------------------------------------------------------------------------------------------------^

rajuare:
Error Type:
Microsoft VBScript compilation (0x800A0408)
Invalid character
/class/school_new_step_3.asp, line 133, column 22
Succeed(class_list.asp?schooluuid=" & schoolid & " prov=" & xProvince & "area=" & xAreaid & ","")
---------------------^

0
 
LVL 4

Expert Comment

by:JNSTAUB
ID: 10731812
remove the parenthesis!
0
 
LVL 1

Author Comment

by:edonkey
ID: 10731830
What's parenthesis??
0
 
LVL 15

Assisted Solution

by:deighc
deighc earned 150 total points
ID: 10731846
> What's parenthesis??

The "(" and ")" characters. Use:

Succeed "class_list.asp?schooluuid=" & schoolid & "&prov=" & xProvince & "&area=" & xAreaid,""
0
 
LVL 3

Expert Comment

by:rajuare
ID: 10732020
try this,

Succeed(class_list.asp?schooluuid=" & schoolid & " prov=" & xProvince & "area=" & xAreaid & ",")
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now