Solved

Invalid character

Posted on 2004-04-01
9
1,928 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
Comment Utility
Try:

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

Accepted Solution

by:
JNSTAUB earned 350 total points
Comment Utility
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
Comment Utility
Try this
Succeed(class_list.asp?schooluuid=" & schoolid & " prov=" & xProvince & "area=" & xAreaid & ","")
0
 
LVL 35

Expert Comment

by:YZlat
Comment Utility
deighc got it
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 1

Author Comment

by:edonkey
Comment Utility
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
Comment Utility
remove the parenthesis!
0
 
LVL 1

Author Comment

by:edonkey
Comment Utility
What's parenthesis??
0
 
LVL 15

Assisted Solution

by:deighc
deighc earned 150 total points
Comment Utility
> What's parenthesis??

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

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

Expert Comment

by:rajuare
Comment Utility
try this,

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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

7 Experts available now in Live!

Get 1:1 Help Now