Forums

ASP

This topic is locked

escape characters prob (maybe)?

Posted 23 Aug 2005 13:29:07
1
has voted
23 Aug 2005 13:29:07 Michael Behan posted:
Not sure why this isnt working, anyone know?

my code:

var fso, tf;
fso = new ActiveXObject("Scripting.FileSystemObject";
tf = fso.CreateTextFile(Server.MapPath("testpage.asp");
tf.WriteLine("<%@LANGUAGE=\"JAVASCRIPT\" CODEPAGE=\"1252\"%>";

I get this error:

Unterminated string constant

tf.WriteLine("<%@LANGUAGE=\"JAVASCRIPT\" CODEPAGE=\"1252\"
-------------------------------------------------------------------------------^

this is an asp javascript page (got same error when i tried it in vbscript)

Reply to this topic