How to recognise an enter character in Html
<p>I have a HtmlEditor(ajax control) in which i am giving some contents to be modified by the user on click of a button(fetched from the database). </p>

<p>When i fetch the contents into a textbox control the 'spaces' and 'enter' come as it is stored in database but when i use HtmlEditor 'spaces' and 'enter' doesnt come and the text is displayed as a plain paragraph. </p>

<p>My code is as follows:</p>

<pre><code> OdbcConnection casetype = new OdbcConnection("Driver={MySQL ODBC 3.51 Driver};Server=localhost;Database=testcase;User=root;Password=root;Option=3;");
            casetype.Open();

//*******to get order
            string ordequery = "select orde from testcase.orddetpabak where fil_no=? and orderdate=?";
            OdbcCommand ordecmd = new OdbcCommand(ordequery, casetype);
            ordecmd.Parameters.AddWithValue("?", HiddenField4.Value);
            ordecmd.Parameters.AddWithValue("?", TextBox3.Text);
            using (OdbcDataReader ordeMyReader = ordecmd.ExecuteReader())
            {
                while (ordeMyReader.Read())
                {
                   String order = ordeMyReader["orde"].ToString();
                }

            }

string editorcontents= "&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;" + order ;
 Editor1.Content = editorcontents;
</code></pre>

<p>If i simply do</p>

<pre><code>textBox1.Text=order; 
</code></pre>

<p>than everything is fine but i want the same output in HtmlEditor control. How can i do it?</p>
