Click to See Complete Forum and Search --> : escape character in asp


nkeg
04-18-2004, 06:35 AM
what is the escape character to escape special characters in asp? like the \ in javascript
Thanks

buntine
04-18-2004, 06:51 AM
Unlike C-style languages, ASP does not have support for escape sequences. Below i have listed some ASP alternatives for the most common escape sequences used in C, Java, PASCAL, etc.

\n (new line) = vbCrLf or vbNewLine
\t (tab) = vbTab
\" (quotes) = ""
\a (motherboard beep) = beep (VB only)
\0 (null) = nothing

The reason ASP does not need the majority of the excape sequences is because it is executed on the server, away from the requesting user.

Regards,
Andrew Buntine,

nkeg
04-18-2004, 06:57 AM
thank you

PeOfEo
04-18-2004, 07:56 AM
\a (motherboard beep) = beep (VB only)
vb keyword beep will play the windows beep sound. :p

buntine
04-18-2004, 08:11 AM
Yer, i know. Its cool.

zingmatter
04-19-2004, 06:12 AM
You can use Chr() to get characters - just get a list of ASCII codes, so Chr(92) will give a \

PeOfEo
04-19-2004, 07:21 PM
chr(22) is a "