Forums
This topic is locked
Text area issue
Posted 22 years ago
1
has voted
22 years ago Vince Baker posted:
I need to allow the user to enter details via a text area field and then display the info on another page as text but I dont want to loose the spaces. All I get is a constant string of characters with no return characters.
How do I do this?
<% Response.write(The best line of code you can ever use"

Vince
VBScript | ASP | HTML | SQL | Oracle | Hosting
Replies
Replied 22 years ago
22 years ago Viktor Farcic replied:
<pre id=code><font face=courier size=2 id=code>Response.Write(SomeVariable, VbCrLf, "<br />"
</font id=code></pre id=code>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I need to allow the user to enter details via a text area field and then display the info on another page as text but I dont want to loose the spaces.
All I get is a constant string of characters with no return characters.
How do I do this?
<% Response.write(The best line of code you can ever use"
%>
Vince
VBScript | ASP | HTML | SQL | Oracle | Hosting
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Viktor Farcic
www.farcic.com
TalkZone Manager

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I need to allow the user to enter details via a text area field and then display the info on another page as text but I dont want to loose the spaces.
All I get is a constant string of characters with no return characters.
How do I do this?
<% Response.write(The best line of code you can ever use"

Vince
VBScript | ASP | HTML | SQL | Oracle | Hosting
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Viktor Farcic
www.farcic.com
TalkZone Manager
Replied 22 years ago
22 years ago Vince Baker replied:
I got the following error when I tried that:
Microsoft VBScript compilation error '800a0414'
Cannot use parentheses when calling a Sub
/mis/tests/display_text.asp, line 62
Response.Write(strtext, VbCrLf, "<br />"
-----------------------------------------^
<% Response.write(The best line of code you can ever use"
%>
Vince
VBScript | ASP | HTML | SQL | Oracle | Hosting
Microsoft VBScript compilation error '800a0414'
Cannot use parentheses when calling a Sub
/mis/tests/display_text.asp, line 62
Response.Write(strtext, VbCrLf, "<br />"

-----------------------------------------^
<% Response.write(The best line of code you can ever use"

Vince
VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 22 years ago
22 years ago Owen Eastwick replied:
Try:
<%= Replace(RecordsetName.Fields.Item("YourDBfieldName"
.Value, VbCrLf, "<BR>"
%>
OR
<%= Replace(Request("YourTextAreaName"
, VbCrLf, "<BR>"
%>
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
<%= Replace(RecordsetName.Fields.Item("YourDBfieldName"


OR
<%= Replace(Request("YourTextAreaName"


Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 22 years ago
22 years ago Vince Baker replied:
worked that time.
cheers
Response.write("The best line of code you can ever use"
Vince
VBScript | ASP | HTML | SQL | Oracle | Hosting
cheers
Response.write("The best line of code you can ever use"

Vince
VBScript | ASP | HTML | SQL | Oracle | Hosting