Problem saving text

asp.net , db Portugal
  • 12 years ago

    Hello:

     

    i wonder if someone can help me.

     I saving text in a SLQ server database. This text comes from user posts online and of course, has paragraphs.

     
    However when i retrieve the text from the database to post in the website... All the paragraphs disapear..., I tried to add extra "\n" but did not work

     

    Can someone guide in the way to fix this?

     

    Thanks
     

  • 12 years ago

     

    try to add extra <br> instead of \n.
  • 12 years ago

     

    Works thank you

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Debugging is anticipated with distaste, performed with reluctance, and bragged about forever.” - Dan Kaminsky