Preserving some characters on db insert

A

anony

Hi,

I'm looking to find out how to properly handle the input of certain
characters into a textbox that will be inserted into a database. In this
app, text is copied and pasted into a textbox from various sources, and
sometimes contains the funky curly quotes and apostrophes which end up being
dropped on the database insert. I'm not sure if the issue resides in my
asp.net code or in the database itself (SQL 2000). Thanks for any help.
 
B

Bobby Ryzhy

Hi,

I'm looking to find out how to properly handle the input of certain
characters into a textbox that will be inserted into a database. In this
app, text is copied and pasted into a textbox from various sources, and
sometimes contains the funky curly quotes and apostrophes which end up being
dropped on the database insert. I'm not sure if the issue resides in my
asp.net code or in the database itself (SQL 2000). Thanks for any help.


When doing an insert into the db - use a paramaterized query.



Bobby Ryzhy
bobby @ domain below
http://weekendtech.net
 
A

anony

It must be on the database end then. I'm using SQL Server 2000, and the
textbox.txt is going into a text field. Things like curly quotes and the
"sharp" apostrophe are getting dropped on insert.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top