1 Replies - 348 Views - Last Post: 11 October 2018 - 11:17 AM Rate Topic: -----

#1 aspfun   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 107
  • Joined: 16-January 13

Text in multiple lines

Posted 11 October 2018 - 10:50 AM

In my asp.net project, there is a multiple line text box to let user input comments.

If user input a comment like below.

Thank you for your fax.

I'll reissue a check to you.

If you have any question, please call me at xxx-xxx-xxxx.


This comment will save as varchar into a SQL server table.

The problem is that once review this comment, three lines text will display like one line text as below.

Thank you for your fax.I'll reissue a check to you.If you have any question, please call me at xxx-xxx-xxxx.

How to fix it?

This post has been edited by aspfun: 11 October 2018 - 10:58 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Text in multiple lines

#2 modi123_1   User is offline

  • Suitor #2
  • member icon



Reputation: 14852
  • View blog
  • Posts: 59,263
  • Joined: 12-June 08

Re: Text in multiple lines

Posted 11 October 2018 - 11:17 AM

You could always convert the \r\n and \n to html <br /> tags with a string replace.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1