asp.net div.InnerHtml does not work with firefox a
<p>I want to update the content of a div in code behind:</p>

<pre><code>StringWriter stringWriter = new StringWriter();

HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter);

// adding new contents for htmlWriter

// update the div content
divBuilder.InnerHtml = stringWriter.ToString();
</code></pre>

<p>THe divBuilder is simply a html div:</p>

<pre><code>&lt;div id="divBuilder" runat="server"&gt;&lt;/div&gt;
</code></pre>

<p>It works fine with IE and Chrome. Event it works well with Firefox in localhost but after uploading the website on the server, I got this error:</p>

<pre><code>cannot get inner content of divBuilder because the contents are not literal
</code></pre>

<p>Searching on some sites, I came to this one: <a href="http://forums.asp.net/t/1168614.aspx/1" rel="nofollow">http://forums.asp.net/t/1168614.aspx/1</a>
But then how to update the content?</p>

<p>Thanks in advance. </p>
