Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Ouptutting a double quote to a form field value with ASP

Reply
Thread Tools

Ouptutting a double quote to a form field value with ASP

 
 
Giles
Guest
Posts: n/a
 
      09-02-2003
If rs("MyString") is Hello "Jim" Lad

<input type=text value="<%=rs("MyString")%>">

prints as <input type=text value=" Hello "Jim" Lad">

How can I get double quotes to display in a text box or textarea? Using a
backslash or &Quot; (with Replace() e.g.) just prints out the backslash or
&Quot;

Thanks
Giles


 
Reply With Quote
 
 
 
 
Ken Schaefer
Guest
Posts: n/a
 
      09-02-2003
Replace " with the corresponding HTML entity, which is &quot;

Cheers
Ken


"Giles" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
: If rs("MyString") is Hello "Jim" Lad
:
: <input type=text value="<%=rs("MyString")%>">
:
: prints as <input type=text value=" Hello "Jim" Lad">
:
: How can I get double quotes to display in a text box or textarea? Using a
: backslash or &Quot; (with Replace() e.g.) just prints out the backslash
or
: &Quot;
:
: Thanks
: Giles
:
:


 
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
problem with single-quote and double-quote when using subprocess. Evan Python 3 11-04-2008 12:24 PM
How to handling string contains single quote and double quote vikrant Perl Misc 8 05-17-2007 04:37 PM
Datagrid on load; replace all double single quote to single quote to display to user Eric Layman ASP .Net 3 04-14-2007 07:16 AM
Single Quote Versus Double Quote In A href link knee-dragger@hotmail.com HTML 3 06-13-2006 12:42 AM
cannot convert parameter from 'double (double)' to 'double (__cdecl *)(double)' error Sydex C++ 12 02-17-2005 06:30 PM



Advertisments