I found in one of my old asp classic pages a line of vbScript code beginning with // and it was an error (commenting a line with // instead of ').
I noted anyway that the mistaken commented line works as a correct commented line. Someone knows why ?? Thanks a lot Leonardo
I made a small example taken from that old code:
<%
Response.Write "<u>testAsp.asp</u><hr/>"
V_Password="pwd"
//V_Password = Str2Hex(V_Password)
Response.Write "V_Password=" + V_Password + "<br/>"
Response.Write "V_Password(hex)=""" + Str2Hex(V_Password) + """"
function Str2Hex(s)
' -- converte stringa di byte (non caratteri ascii!!) in formato esadecimale
'
' The Asc function returns the ANSI character code corresponding
' to the first letter in a string.
' The AscB function is used with byte data contained in a string.
' Instead of returning the character code for the first character,
' AscB returns the first byte.
' AscW is provided for 32-bit platforms that use Unicode characters.
' It returns the Unicode (wide) character code, thereby avoiding
' the conversion from Unicode to ANSI.
dim k, out, MultiByte
out=""
for k=1 to len(s)
'response.Write("|" & hex(ascb(Mid(s,k,1))) & "|<br>" & vbCrLf)
out=out & hex(ascb(mid(s,k,1)))
next
Str2Hex="0x" & out
'response.write(out & vbCrLf)
end function
%>
This is the produced output:
As you can see the asp page is in vbScript and contains also correct vbscript comments...