Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 11th, 2005, 04:56 AM
Registered User
Join Date: Aug 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default display quotation mark in ASP

hi guys,
how do I display "." by using response.write() in asp? i mean including the quotation mark.


Reply With Quote
  #2 (permalink)  
Old October 11th, 2005, 05:23 AM
Friend of Wrox
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post

In VBScript you need to double the quotes to escape them...
Call Response.Write(""".""")
In JScript, escape them with a backslash...


Reply With Quote
  #3 (permalink)  
Old October 31st, 2005, 08:03 AM
Registered User
Join Date: Feb 2005
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

The way that I do this in VBScript takes a few extra characters for a line, and is just a personal preference. I use the Chr() function to insert the quote character in the string. The line below would look like:

Response.Write(Chr(34) & "." & Chr(34))
I don't use it very often, only when I really NEED a quote on the page.

John Cramer
Sgt    USMC
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem unclosed quotation mark. HelpHelp waiwaisan VB Databases Basics 1 January 4th, 2007 05:29 AM
Quotation NEO1976 XML 5 July 19th, 2006 10:00 AM
apostrophes or quotation marks crmpicco Javascript 6 March 21st, 2006 09:01 AM
str_replace for quotation mark starsol Beginning PHP 4 August 21st, 2003 11:25 AM

All times are GMT -4. The time now is 05:30 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.