close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Unterminated string constant

Thread began 10/25/2010 3:53 pm by mike174890 | Last modified 10/26/2010 11:07 am by Jason Byrnes | 5434 views | 6 replies |

mike174890

Unterminated string constant

Here is the script that DataAssist built in Dreamweaver CS4

<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%><!--#include file="../WA_DataAssist/WA_AppBuilder_VB.asp" -->
<!--#include file="../Connections/MainGrantHome.asp" -->
<%
Can you tell me what to fix? Unterminated string constant Error says Line 2, line 2 starts <!--#include file="../Con

Sign in to reply to this post

Jason ByrnesWebAssist

that line would not cause that error.



can you copy and paste the exact error text you are getting.

Sign in to reply to this post

mike174890

copy of error

Microsoft JScript compilation error '800a03f7'

Unterminated string constant

D:\HOSTING\LOANS2FUND\MONEY\../WA_DataAssist/WA_AppBuilder_VB.asp, line 2

'-----------------------------------------------------------------------------
------------------------------------------------------------------------------^

Sign in to reply to this post

mike174890

web page

Grant_Finder.asp

Sign in to reply to this post

Jason ByrnesWebAssist

you have VBScript on the page,


but this line is telling it to use the Javascript Processing engine:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>


change that to:
<%@LANGUAGE="VBScript" CODEPAGE="1252"%>

Sign in to reply to this post

mike174890

new error message after changing to VB

New Error Message:
Microsoft VBScript compilation error '800a0401'

Expected end of statement

/money/Grant_Finder.asp, line 4

var Recordset1_cmd = Server.CreateObject ("ADODB.Command");
----------------------------------------------------------^





Current Script:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%><!--#include file="../WA_DataAssist/WA_AppBuilder_VB.asp" -->
<!--#include file="../Connections/MainGrantHome.asp" -->
<%
var Recordset1_cmd = Server.CreateObject ("ADODB.Command");
Recordset1_cmd.ActiveConnection = MM_MainGrantHome_STRING;
Recordset1_cmd.CommandText = "SELECT * FROM FWGM";
Recordset1_cmd.Prepared = true;

var Recordset1 = Recordset1_cmd.Execute();
var Recordset1_numRows = 0;
%>


When establising site I received a message "Please edit the 'WADAFWGM' recordset and set the type for 'ParamID'"

I added record set to each dataassit page

Sign in to reply to this post

Jason ByrnesWebAssist

You have a mix of ASP VBSript and ASP Javascript on this page. You cannot have both.

In you site definition, what is the Server language set as?

Chose one or the other and stick with that to eliminate these errors.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...