www.webdeveloper.com
Results 1 to 7 of 7

Thread: escape character in asp

Hybrid View

  1. #1
    Join Date
    Feb 2004
    Posts
    37

    escape character in asp

    what is the escape character to escape special characters in asp? like the \ in javascript
    Thanks

  2. #2
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    5,298
    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,

  3. #3
    Join Date
    Feb 2004
    Posts
    37
    thank you

  4. #4
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    \a (motherboard beep) = beep (VB only)
    vb keyword beep will play the windows beep sound.

  5. #5
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    5,298
    Yer, i know. Its cool.

  6. #6
    Join Date
    Mar 2004
    Location
    Glasgow, Scotland
    Posts
    613
    You can use Chr() to get characters - just get a list of ASCII codes, so Chr(92) will give a \
    zing

    | Web Design and Development in Glasgow - 404i |
    | Blog |

    Code:
    -. .-.   .-. .-.   .-. .-.   .-. .-.   .-. .-.
    ||x|||\ /|||x|||\ /|||x|||\ /|||x|||\ /|||x|||\ 
    |/ \|||x|||/ \|||x|||/ \|||x|||/ \|||x|||/ \|||
    '   '-' '-'   '-' '-'   '-' '-'   '-' '-'   '-'

  7. #7
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles