ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 3rd, 2003, 09:57 AM
aspnewbie aspnewbie is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: The Great White North
Posts: 361 aspnewbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 50 sec
Reputation Power: 17
Send a message via MSN to aspnewbie
Insert Problem with Double Quotes

I'm inserting records into access using ADO and I'm getting a problem with double quotes. Anything after the quotes is not being entered.

I know if I was using a sql insert I'd have to escape single quotes, but I'm using ADO and I'm having a problem with double quotes!

Any one had this problem? How did you get around it?

Reply With Quote
  #2  
Old April 3rd, 2003, 07:04 PM
numbernine numbernine is offline
Up To His Eyes In Ads
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Chicago
Posts: 160 numbernine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 25 sec
Reputation Power: 16
Hey aspnewbie,
To escape double quotes in ASP, you put them twice.

Code:
   Response.Write("He said, ""Hey Dude""!")


Is this what you mean?

Reply With Quote
  #3  
Old April 3rd, 2003, 07:32 PM
aspnewbie aspnewbie is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: The Great White North
Posts: 361 aspnewbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 50 sec
Reputation Power: 17
Send a message via MSN to aspnewbie
Tried that - still getting a problem. Very strange. I wasn't getting this problem before.

Reply With Quote
  #4  
Old April 3rd, 2003, 08:53 PM
numbernine numbernine is offline
Up To His Eyes In Ads
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Chicago
Posts: 160 numbernine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 25 sec
Reputation Power: 16
Can you post your code?

Reply With Quote
  #5  
Old April 5th, 2003, 12:10 PM
EiSa EiSa is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Norway
Posts: 184 EiSa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 24 sec
Reputation Power: 16
You have to replace your double quotes with two of those: '

Do that before you inserts into the Database.


Replace(somevalue, Chr(34), "''")

Reply With Quote
  #6  
Old April 6th, 2003, 11:50 AM
aspnewbie aspnewbie is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: The Great White North
Posts: 361 aspnewbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 50 sec
Reputation Power: 17
Send a message via MSN to aspnewbie
Thanks, I'll give that a whirl.

Reply With Quote
  #7  
Old April 24th, 2009, 10:21 AM
allozysob allozysob is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2009
Location: Switzerland
Posts: 7 allozysob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 44 sec
Reputation Power: 0
Send a message via ICQ to allozysob
Simple question pour vous..

Allo ! Je lit pas mal le forum souvent… mais là je deecide de me connecter pour vous demander c'est quoi le site web au juste du magasine plein air vacances . J'ai entendu par la bande qu'il y a plusieurs de photos à se partager sur ce site..! alp!!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > Insert Problem with Double Quotes


Developer Shed Advertisers and Affiliates


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

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


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap