I have a database with almost 2000 code examples that I've collected over the last 10 years that I want to be able to access with a textarea field so I can copy and/or update easily. I'm trying to migrate from PHP to C# on a new domain, but I'm having problems getting it to display correctly.
This is how it looks currently: http://nunyabiz.freeiz.com/csharp/index.html
This is how it's supposed to look: http://nunyabiz.freeiz.com/csharp/index2.html
This is the code that I'm using to display it:
Code.Text = rs["Code"].ToString().Replace("\r\n", "\n");
The "\r\n" characters aren't getting recognized, so I'm guessing that I have to convert, encode or decode it, but I haven't had any luck trying to find something that will work. online.