Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Display a block of text, Label or Literal or Textbox or TextArea, Line problem?

Thread Tools

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

Posts: n/a
Hi everybody,
I just need to display a database text field onto a web page. But it
seems to me that none of the 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 Literal web control, it doe not display return line or
line feed proerply. Instead, it will display Line 1 Line 2 in same
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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: illegal line end in character literal in escaped unicode CARRIAGE RETURN / NEW LINE Andreas Leitgeb Java 0 05-15-2009 02:02 PM
Fo:Block can you check to see if a block contains any text by using the block id? morrell XML 1 10-10-2006 07:18 PM
TextBox,Literal,And new Line apcsaba ASP .Net 0 10-04-2006 09:24 AM
What's wrong with rpc-literal? Why use doc-literal? Anonieko Ramos ASP .Net Web Services 0 09-27-2004 09:06 AM