Forums
This topic is locked
Linebreak in textarea
Posted 27 Feb 2005 18:19:08
1
has voted
27 Feb 2005 18:19:08 Christian Sen posted:
Hi!Does anybody know how to add a linebreak to a textarea when inserting
dynamic text into a db?
Regards, Christian
Replies
Replied 28 Feb 2005 10:24:15
28 Feb 2005 10:24:15 Vince Baker replied:
Hi Christian, when the user clicks on the return character in a text area a VbCrLf (Visual Basic Carriage Return Line Feed) is inserted into the database field.
When you try to display this on a page when calling it from the database the VbCrLf does not show up, you need to replace it with a <br>.
Use the following where you want to display your field:
Replace(yourrecordsetname.fields.item("yourfieldname"
.value, VbCrLf, "<BR>"
Regards
Vince Baker
<strong>DMX Zone Manager</strong>
[VBScript | ASP | HTML | CSS | SQL | Oracle | AS400 | ERP Logic | Hosting]
When you try to display this on a page when calling it from the database the VbCrLf does not show up, you need to replace it with a <br>.
Use the following where you want to display your field:
Replace(yourrecordsetname.fields.item("yourfieldname"


Regards
Vince Baker
<strong>DMX Zone Manager</strong>
[VBScript | ASP | HTML | CSS | SQL | Oracle | AS400 | ERP Logic | Hosting]
Replied 02 Mar 2005 00:26:13
02 Mar 2005 00:26:13 Christian Sen replied:
Thank you Vince, that did the trick <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Regards, Christian
Regards, Christian