ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 26th, 2003, 06:48 PM
kinetic kinetic is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Toronto
Posts: 60 kinetic User rank is Lance Corporal (50 - 100 Reputation Level)kinetic User rank is Lance Corporal (50 - 100 Reputation Level)kinetic User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 5 h 26 m 54 sec
Reputation Power: 6
escape characters like "

sorry.. im really new to asp. i never use it but i have to for this one project.

im tryin to do this:

response.write("<body topmargin='0' leftmargin='0' onLoad='window.resize('" & width & "', '" & height & "')'>")

i need to run it like this though:

response.write("<body topmargin='0' leftmargin='0' onLoad="window.resize('" & width & "', '" & height & "')">")

in php i can replace it like onLoad = \"window.resize

is there something like that in asp?

thanks for all your help..i really appreciate it

Reply With Quote
  #2  
Old November 26th, 2003, 10:34 PM
spanglerco's Avatar
spanglerco spanglerco is offline
www.spanglerco.tk
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Georgia
Posts: 36 spanglerco User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Use (&)quot; without the parenthesis. Example:

<% Response.Write("He said, (&)quot;Hey!(&)quot;") %>

I'm sorry. This forum won't let me put it how it should be done. Just take out the () around the &. Tell me if you don't get it. I type it right, and it looks like this: ".
__________________
Paul Spangler
SpanglerCo
www.spanglerco.tk

Last edited by spanglerco : November 27th, 2003 at 06:17 PM.

Reply With Quote
  #3  
Old November 27th, 2003, 10:53 AM
unclefu unclefu is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 120 unclefu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 57 sec
Reputation Power: 6
to escape a quote symbol (") in asp you only need to put another quote symbol right next to it

response.write( "he said, ""blah blah blah""")

in the middle of the sentence there's 2 which amounts to having a quote symbol displayed, at the end there are 3, 2 to display one quote, the other to end the string.

Reply With Quote
  #4  
Old November 27th, 2003, 06:15 PM
spanglerco's Avatar
spanglerco spanglerco is offline
www.spanglerco.tk
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Georgia
Posts: 36 spanglerco User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Microsoft want's you to use entities (& followed by a string such as quot and then ;). It is good to follow this practice.

Reply With Quote
  #5  
Old December 1st, 2003, 11:46 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 13th Plane (11000 - 11499 posts)
 
Join Date: Jun 2003
Posts: 11,234 Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level)Doug G User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 7 h 12 m 7 sec
Reputation Power: 909
Quote:
Originally posted by spanglerco
Microsoft want's you to use entities (& followed by a string such as quot and then . It is good to follow this practice.

For html, yes. Server-side asp vbscript won't know what to do with (&)quot though. Double the quotes to embed a quote in a string in vbs like unclefu posted.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #6  
Old December 1st, 2003, 12:11 PM
spanglerco's Avatar
spanglerco spanglerco is offline
www.spanglerco.tk
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Georgia
Posts: 36 spanglerco User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Double quotes are a good way to do it, but I find (&)quot; easier to read in the code.

Quote:
Originally posted by Doug G,
Server-side asp vbscript won't know what to do with (&)quot though.


Maybe some ASP servers don't read (&)quot;, but I know all the servers I have tried do support (&)quot;.

Reply With Quote
  #7  
Old December 1st, 2003, 01:43 PM
WisconsinGuy's Avatar
WisconsinGuy WisconsinGuy is offline
I thank you very little
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2003
Location: Milwaukee, WI
Posts: 1,028 WisconsinGuy User rank is Corporal (100 - 500 Reputation Level)WisconsinGuy User rank is Corporal (100 - 500 Reputation Level)WisconsinGuy User rank is Corporal (100 - 500 Reputation Level)WisconsinGuy User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 35 m 41 sec
Reputation Power: 9
Isnt chr(34) a ", it could be a quote or a line feed.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > escape characters like "


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT