Forums
This topic is locked
losing paragraphs
Replies
Replied 11 Mar 2003 21:43:33
11 Mar 2003 21:43:33 asp asp replied:
try this, put this above the <html> tag
<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>
function PreserveWhitespace(str)
tabStr = chr(160)&chr(160)&chr(160)&chr(160)&chr(160)
str = Replace(str,chr(10),chr(10)&"<BR>"
str = Replace(str,chr(9),tabStr)
PreserveWhitespace = str
End Function
</SCRIPT>
then call this in your page with,
<%= PreserveWhitespace((rsYourRecordset.Fields.Item("Table_name"
.Value)) %>
that should do the trick
<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>
function PreserveWhitespace(str)
tabStr = chr(160)&chr(160)&chr(160)&chr(160)&chr(160)
str = Replace(str,chr(10),chr(10)&"<BR>"

str = Replace(str,chr(9),tabStr)
PreserveWhitespace = str
End Function
</SCRIPT>
then call this in your page with,
<%= PreserveWhitespace((rsYourRecordset.Fields.Item("Table_name"

that should do the trick