-
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.
-
post the relavent code and let's see if we can't effect minor changes.
DocZaf
{;->
-
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