Multi Line Text Box Displays HTML Elements When Going Back To Page
<p>I have an <code>asp.net</code> web form which on one page has a multi line <code>textbox</code>.  When the user types in this field and continues the details are displayed on a confirmation page and displays as the user entered</p>

<p><strong>Example</strong></p>

<p><em>This is the first line</em></p>

<p><em>This is the second line</em></p>

<p>But when I click my edit button (which directs me back to my page) my <code>textbox</code> displays as</p>

<p><code>This is the first line&lt;br /&gt;&lt;br /&gt;This is the second line</code></p>

<p>I want it to keep its styling but don't know how to do this.  The details are stored in the session.</p>

<p><strong>Code behind</strong></p>

<pre><code>protected void Step07SubmitButton_Click(object sender, EventArgs e)
{
    Session["Step07OtherDetailsField"] = Step07OtherDetailsField.Text.Replace("\r\n", "&lt;br /&gt;");
    Response.Redirect("/Quotation/pg3.aspx");
}
</code></pre>

<p>I tried the following in my <code>Page_Load</code></p>

<pre><code>Step07OtherDetailsField.Text.Replace("&lt;br /&gt;", "\r\n");
</code></pre>

<p>and also</p>

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

<p>But for some reason when I debug it, it says that my <code>.text</code> is empty but the previous wording is actually still displayed in the field and the <code>&lt;br /&gt;</code> is also still displayed.</p>