468,766 Members | 1,292 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,766 developers. It's quick & easy.

Ouptutting a double quote to a form field value with ASP

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
Jul 19 '05 #1
1 5231
Replace " with the corresponding HTML entity, which is &quot;

Cheers
Ken
"Giles" <ms*@perryer.com> wrote in message
news:uB**************@TK2MSFTNGP12.phx.gbl...
: 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
:
:
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by William Wisnieski | last post: by
7 posts views Thread by pooba53 | last post: by
4 posts views Thread by Macneed | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.