asp_web_howto thread: How to show spaces in text boxes
Message #1 by fishy.productions@n... on Wed, 27 Feb 2002 18:46:40
|
|
Can someone please help ..
This is my first post so please be gentle :)
I have a text field within a form which is populated from a variable
eg :
Dim Title
Title = "Another Book Title"
My Text field is :
Response.write "<input type=""text"" name=""title"" value=" & Title & ">
But its not printing out the full value I only get "Another"
If I response.write it directly I get the correct info...
Please help ..
Thanks in advance.
Message #2 by "Pham, Khanh" <Khanh.Pham@d...> on Wed, 27 Feb 2002 13:48:45 -0500
|
|
try this:
Response.write "<input type=""text"" name=""title"" value=""" & Title &
""">"
hope this helps
khanh
-----Original Message-----
From: fishy.productions@n...
[mailto:fishy.productions@n...]
Sent: Wednesday, February 27, 2002 1:47 PM
To: ASP Web HowTo
Subject: [asp_web_howto] How to show spaces in text boxes
Can someone please help ..
This is my first post so please be gentle :)
I have a text field within a form which is populated from a variable
eg :
Dim Title
Title = "Another Book Title"
My Text field is :
Response.write "<input type=""text"" name=""title"" value=" & Title & ">
But its not printing out the full value I only get "Another"
If I response.write it directly I get the correct info...
Please help ..
Thanks in advance.
$subst('Email.Unsub').
Message #3 by "Jerry Diegel" <diegelj@g...> on Wed, 27 Feb 2002 12:33:41 -0600
|
|
Response.write "<input type=3D""text"" name=3D""title"" value=3D""" &
Title & """>
-----Original Message-----
From: fishy.productions@n...
[mailto:fishy.productions@n...]
Sent: Wednesday, February 27, 2002 12:47 PM
To: ASP Web HowTo
Subject: [asp_web_howto] How to show spaces in text boxes
Can someone please help ..
This is my first post so please be gentle :)
I have a text field within a form which is populated from a variable
eg :
Dim Title
Title =3D "Another Book Title"
My Text field is :
Response.write "<input type=3D""text"" name=3D""title"" value=3D" &
Title & ">
But its not printing out the full value I only get "Another"
If I response.write it directly I get the correct info...
Please help ..
Thanks in advance.
$subst('Email.Unsub').
Message #4 by "Juan Rosado" <jrosado@n...> on Wed, 27 Feb 2002 19:32:08
|
|
Try this:
Response.write "<input type='text' name='title' value='" & Title & "'>"
if you prefer double quotes then try:
Response.write "<input type=""text"" name=""title"" value="&chr(34)& Title
&chr(34)&">"
|