Having issues with Quotes

Discussion in 'ASP General' started by carmen, Apr 28, 2004.

  1. carmen

    carmen Guest

    I an trying to return data from a db using <%=RSupdate(title)%> in my code.
    The problem is when title has some quotes in it such as Box "is" to big, the
    only thing displayed will be Box. Is there any way to get the whole entry.

    Thanks
    Carmen
     
    carmen, Apr 28, 2004
    #1
    1. Advertising

  2. carmen wrote:
    > I an trying to return data from a db using <%=RSupdate(title)%> in my
    > code. The problem is when title has some quotes in it such as Box
    > "is" to big, the only thing displayed will be Box. Is there any way
    > to get the whole entry.
    >
    > Thanks
    > Carmen


    It depends on where the <%=RSupdate(title)%> is, but you can usually do:
    <%=Replace(RSupdate(title),"""","""""")%>

    to double up the quotes.

    In other situations, you will need to use:
    <%=Server.HTMLEncode(RSupdate(title))%>

    HTH,
    Bob Barrows

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.
     
    Bob Barrows [MVP], Apr 28, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris White

    Quotes/Double Quotes in Image Control

    Chris White, Sep 22, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    4,852
    Hermit Dave
    Sep 22, 2004
  2. Chris
    Replies:
    1
    Views:
    13,645
    Oisin
    Mar 24, 2006
  3. Lawrence Tierney

    Multiline quotes - escaping quotes - et al

    Lawrence Tierney, Dec 24, 2003, in forum: Java
    Replies:
    3
    Views:
    4,498
    Andrew Thompson
    Dec 24, 2003
  4. jOhn
    Replies:
    1
    Views:
    226
    Phlip
    Jan 29, 2008
  5. Richard Sandoval
    Replies:
    5
    Views:
    205
    7stud --
    Apr 26, 2011
Loading...

Share This Page