Solved

Invalid character

Posted on 2004-04-01
9
1,941 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
show region if a selection is made on a drop down menu 3 61
how do you get these � Marks in your text? 9 80
Google Chrome color inconsistency 2 59
Select distinct 25 98
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…
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/…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
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…

785 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