Is there a way to fill an ITemplate by code?
Let’s suppose I have an UpdatePanel:
UpdatePanel upnl = new UpdatePanel();
// What should be done next?
//upnl.ContentTemplate = ...
and the result of it would be equivalent of:
<asp:UpdatePanel runat="server" ID="upnl">
<ContentTemplate>
test
</ContentTemplate>
</asp:UpdatePanel>
This will do if I understood your question correctly: