textbox and multiplle lines, issues

  • Thread starter Thread starter Jeff
  • Start date Start date
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?
 
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>
 
Back
Top