Populate ITemplate by code
<p>Is there a way to fill an <code>ITemplate</code> by code?
Let's suppose I have an <code>UpdatePanel</code>:</p>

<pre><code>UpdatePanel upnl = new UpdatePanel();
// What should be done next?
//upnl.ContentTemplate = ...
</code></pre>

<p>and the result of it would be equivalent of:</p>

<pre><code>&lt;asp:UpdatePanel runat="server" ID="upnl"&gt;
    &lt;ContentTemplate&gt;
    test
    &lt;/ContentTemplate&gt;
&lt;/asp:UpdatePanel&gt;
</code></pre>
