Forward slashes as VBScript comment
-
On one or two servers on which I work I've found that two forward slashes (//) work as a comment in VBScript ASP pages whereas on other servers this generates an error and I can only use a single quote or a 'rem'. Does anyone know what set of circumstances makes this use of two forward slashes allowable? Thanks for any clues - Phil Meades
-
On one or two servers on which I work I've found that two forward slashes (//) work as a comment in VBScript ASP pages whereas on other servers this generates an error and I can only use a single quote or a 'rem'. Does anyone know what set of circumstances makes this use of two forward slashes allowable? Thanks for any clues - Phil Meades
Forward slashes can be used as comments in javascript. In VbScript as u said, rem or single quotes will work. Om Prakash
-
Forward slashes can be used as comments in javascript. In VbScript as u said, rem or single quotes will work. Om Prakash
Actually what I said was that on a couple of servers that I've used forward slashes *also* work in VBScript. The spec of my machine is XP Professional, IIS 5.1, asp.dll version 5.1.2600.1106. Also with .Net framework and Visual Studio .Net installed. Here's the code of a sample page that just works fine on my machine but not on some others that I've used: <%@ Language = "VBScript" %> <% //This is a comment 'and so is this.. rem and this Response.Write "Hello there.." %>