Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Having issues with Quotes

Reply
Thread Tools

Having issues with Quotes

 
 
carmen
Guest
Posts: n/a
 
      04-28-2004
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


 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      04-28-2004
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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
regex to avoid escaped quotes or double quotes jOhn Ruby 1 01-29-2008 08:31 PM
PHP double quotes inside double quotes MSB Computer Support 11 10-21-2006 01:09 PM
Asp.NET Javascript string, want to pass '(single quotes' within '(single quotes) Chris ASP .Net 1 03-24-2006 09:03 PM
Quotes/Double Quotes in Image Control Chris White ASP .Net 1 09-22-2004 06:22 AM
Multiline quotes - escaping quotes - et al Lawrence Tierney Java 3 12-24-2003 05:12 PM



Advertisments