My Big text item with no formatting!!!

andycharger

Centurion
Joined
Apr 2, 2003
Messages
152
I have a textarea that is used to store a big piece of text with line breaks. I then inserts it into a SQL Server Database.

However, when I go to a page to display it, in my table (using my datalist) it does not have the same formatting (i.e. line breaks!). Just one continuous line of text.

If I include <pre> tags it seems to put line breaks at the end of the paragraphs but they cause my page to stretch very wide!

I have used replace (strNews , chr(10), Vbcrlf) in the past but I think the problem is showing it in my datalist.

Can anyone offer some help on displaying my text correctly?
 
Back
Top