Display Code From A Database with C#
<p>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. </p>

<p>This is how it looks currently: <a href="http://nunyabiz.freeiz.com/csharp/index.html" rel="nofollow">http://nunyabiz.freeiz.com/csharp/index.html</a></p>

<p>This is how it's supposed to look: <a href="http://nunyabiz.freeiz.com/csharp/index2.html" rel="nofollow">http://nunyabiz.freeiz.com/csharp/index2.html</a></p>

<p>This is the code that I'm using to display it:
<code>Code.Text = rs["Code"].ToString().Replace("\r\n", "\n");</code></p>

<p>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.</p>
