Wrox Programmer Forums
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 12th, 2003, 03:23 AM
Registered User
Join Date: Dec 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default HELP!!! the problem of handling special character

I use a "INSERT INTO" instruction to add new record, the value of one field is HTML code that having quotation mark and comma ,
i get this error when submit:

²»ÄܲÙ×÷£¬ÏµÍ³±¨ÈçÏ´íÎó£ º
Microsoft JET Database Engine ´íÎó '80040e14'
Óï·¨´íÎó (²Ù×÷·û¶ªÊ§) ÔÚ²éѯ±í´ïʽ ''openBrWindow('Store_detail.asp?InfoID=1','detail ','scrollbars=auto' ÖС£

it seen that the html code has damaged the SQL statement.
How to solve that problem if i must use the html data??

Old December 13th, 2003, 01:31 PM
Authorized User
Join Date: Nov 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts

I solved this problem by inserting the HTML code while retrieving the data instead of storing it in the DB.

SELECT zip, dname, address + '<br>' + city, phone
FROM Dealers


Sandra MacGregor

Similar Threads
Thread Thread Starter Forum Replies Last Post
Losing special character data mussitsch Classic ASP Professional 4 September 5th, 2006 02:29 PM
Validation for special character nazneen Java GUI 5 February 13th, 2006 03:13 PM
Decimal code for a special character mcinar HTML Code Clinic 14 February 4th, 2005 01:56 PM
Special Character mg1966 Classic ASP Databases 2 December 13th, 2004 11:12 AM
XML - Special Character Formatting sean1230 XML 3 February 18th, 2004 05:17 AM

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