Forums

ASP

This topic is locked

Text area issue

Posted 29 Aug 2002 12:10:39
1
has voted
29 Aug 2002 12:10:39 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 30 Aug 2002 09:16:00
30 Aug 2002 09:16:00 Viktor Farcic replied:
<pre id=code><font face=courier size=2 id=code>Response.Write(SomeVariable, VbCrLf, "&lt;br /&gt;"</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?

&lt;% Response.write(The best line of code you can ever use"%&gt;

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 30 Aug 2002 09:26:42
30 Aug 2002 09:26:42 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, "&lt;br /&gt;"
-----------------------------------------^


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

Vince
VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 30 Aug 2002 11:00:48
30 Aug 2002 11:00:48 Owen Eastwick replied:
Try:

&lt;%= Replace(RecordsetName.Fields.Item("YourDBfieldName".Value, VbCrLf, "&lt;BR&gt;" %&gt;

OR

&lt;%= Replace(Request("YourTextAreaName", VbCrLf, "&lt;BR&gt;" %&gt;

Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 02 Sep 2002 15:36:15
02 Sep 2002 15:36:15 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

Reply to this topic