[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webcontrols

Display a block of text, Label or Literal or Textbox or TextArea, Line problem?

easyhenry

2/10/2004 3:48:00 AM

Hi everybody,
I just need to display a database text field onto a web page. But it
seems to me that none of the asp.net or html controls is suitable for
my task.
Let's say, the text need to be displayed is like following:

Line 1
Line 2

For asp.net Literal web control, it doe not display return line or
line feed proerply. Instead, it will display Line 1 Line 2 in same
line.
I understand that in Html, we need to use <br> to start a new line.
But that means I have to translate my text to include <br> tag, which
doesn't seem to be a good choice for me.
For Label control, it has the same problem as literal control--no
line break.
For textbox or textarea control, they seem to recognize line breaks,
however, both controls need to have a certain height.
But my web page needs to display text like free flow text, instead of
limiting them inside a textbox window.
Could you tell me any better solution?

Thank you.

Henry