|
||||||||||||||||||||
Formatting Submitted Text HELP PLEASE URGENT!!!!!!!!!!!!!!!!!!!!!!!!
|
Author | Message |
---|---|
![]() I am getting user text from a form which contains a textarea control which is then posted to an ASP page which inserts that text to a SQL server Database. When I go to get the data out of the database I loose all the formatting for example: This would be retrieved like this: This is a formatting test.1. test one2. test two From a------ Response.Write "<td ><%=RS.Fields('Message').Value%></td>" How do I retain the original format of the submitted text? Thanks in Advance! Chris |
|
Sun, 12 Sep 2004 20:43:54 GMT | |
![]() |
|
![]() 1) on the form where the text is input
<textarea name='notes' cols=50 rows=6 wrap='virtual'></textarea> 2) when you put it in the database 3) When you display it on a web page you need to convert all <CR><LF> response.write Replace( recordSet("notes"), VbCrLf, "<br>") Hope this helps! On Wed, 27 Mar 2002 07:43:54 -0500, "Christopher J. Calhoun" Quote: >I am getting user text from a form which contains a textarea control which >is then posted to an ASP page which inserts that text to a SQL server >Database. >When I go to get the data out of the database I loose all the formatting >for example: >This would be retrieved like this: > This is a formatting test.1. test one2. test two >From a------ Response.Write "<td ><%=RS.Fields('Message').Value%></td>" >How do I retain the original format of the submitted text? >Thanks in Advance! >Chris |
|
Sun, 19 Sep 2004 02:50:14 GMT | |
Page 1 of 1 |
[ 2 post ] |