Replacing <br> tag in asp multiline textbox
<p>I'm working with textbox in a datagrid. Before saving the data into the database, I replace the newline with <code>&lt;br&gt;</code> by using following script :</p>

<pre><code>description.Replace(Environment.NewLine, "&lt;br&gt;")
</code></pre>

<p>Working fine, it's replacing the newline with <code>&lt;br&gt;</code>. Then I need to fetch the data into the textbox again for editing. I've tried to replace the <code>&lt;br&gt;</code> with newline by using following script :</p>

<pre><code>data.description = ((TextBox)dgrid.Items[i].FindControl("description")).Text;
data.description = data.description.Replace("&lt;br&gt;", "\r\n");
</code></pre>

<p>But it's not working, do you guys have any solutions for this ?</p>
