textbox and multiplle lines, issues

J

Jeff

hi

..NET 3.5

I have a textbox (textmode=multiple) on a webpage. If I enter text with
mulitiple lines. for example this text:
er
er
er
er
er

Then when I display the text in a literal, it is displayed like this:
er er er er er er er

I want it to be displayed as it was entered

any suggestions?
 
A

Anthony Jones

Jeff said:
hi

.NET 3.5

I have a textbox (textmode=multiple) on a webpage. If I enter text with
mulitiple lines. for example this text:
er
er
er
er
er

Then when I display the text in a literal, it is displayed like this:
er er er er er er er

I want it to be displayed as it was entered

any suggestions?

Replace Line Feeds in the text with <br />.

OR

place content inside <pre></pre>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top