Keep the format of MultiLine TextBox.Text

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

please help!

How to keep the format of the content of a MultiLine TextBox. For example,
'new line'

I try the code:
 
The browser ignores extra whitespace. If you try to put 3 spaces in a row,
it will only show you one.
Try using <br> for a newline.
 
Oh hold on, you are talking about a textbox here. Sorry, I thought you just
had text right in the HTML.

Try using System.Environment.Newline instead of '\n'.
 
I really appreciate it! It works very well.

Frank

Marina Levit said:
Oh hold on, you are talking about a textbox here. Sorry, I thought you just
had text right in the HTML.

Try using System.Environment.Newline instead of '\n'.
 

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

Back
Top