Use C# to write ASP code on a page
<p>I have ASP code like this:</p>

<pre><code>&lt;ext:Panel ID="pnlHelp" CtCls="help-panel" AnimCollapse="true""&gt;
                        &lt;Content&gt;
                            &lt;h1&gt;some text&lt;/h1&gt;
                            &lt;p&gt;
                                More text[...]
                            &lt;/p&gt;
                        &lt;/Content&gt;
                    &lt;/ext:Panel&gt;
</code></pre>

<p>I would like to generate the  tag dynamically using C#. I tried this, like with regular HTML tags:</p>

<pre><code>&lt;ext:Panel ID="pnlHelp" CtCls="help-panel" AnimCollapse="true""&gt;
                        &lt;Content&gt;
                        &lt;% Response.Write("&lt;h1&gt;some text&lt;/h1&gt;"); %&gt;                             
                            &lt;p&gt;
                                More text[...]
                            &lt;/p&gt;
                        &lt;/Content&gt;
                    &lt;/ext:Panel&gt;
</code></pre>

<p>But the text ends up somewhere near the beginning of the page where I didn't intend it to go. How can I do this?</p>
