Results 1 to 3 of 3

Thread: Data display problems

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    266
    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.

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    post the relavent code and let's see if we can't effect minor changes.

    DocZaf
    {;->

  3. #3
    Guest
    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
  •  



Click Here to Expand Forum to Full Width