|
-
Jan 1st, 2001, 12:33 AM
#1
Thread Starter
Hyperactive Member
Dear all,
My asp page dynamically generates HTML data. Sometimes I have to populate an HTML text input with some data e.g. New's Along. In this case the ' in the word New's causes problems. For when I generate the HTML for the text box it is as below
<INPUT TYPE=TEXT VALUE='New's Along'>
This displays the value New in the text box. How does one handle such data formatting.
Thanks in advance.
-
Jan 1st, 2001, 07:57 PM
#2
Fanatic Member
post the relavent code and let's see if we can't effect minor changes.
DocZaf
{;->
-
Jan 2nd, 2001, 10:21 AM
#3
You may want to put the value between "" instead of single quotes. In case you have retrieved this information from a form, before you store the data replace the single quote by two single quotes;
replace(txtText, "'", "''")
that should do the job
good luck
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|