Solved

Invalid character

Posted on 2004-04-01
9
1,947 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 35

Expert Comment

by:YZlat
ID: 10731777
deighc got it
0
 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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 informatio…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

726 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