title: Rendering controls within a Template tag in a custom ServerControl?
body: <p>I'm working on a custom navigation menu, <br />
  I've added the following property within my <code>MenuItem</code> class to allow users add them controls into it.</p>
  
  <pre><code>public class MenuItem : INamingContainer
  {
  .
  .
  .
      [PersistenceMode(PersistenceMode.InnerProperty)]
      public ITemplate Template { get; set; }
  }
  </code></pre>
  
  <p>I can add the tags in asp.net without any troubles but the controls within <code>Template</code> aren't render!!! and I'm not receive any Exceptions or Errors !<br /></p>
  
  <pre><code>&lt;MdsMenu:Menu ID="Menu1" runat="server"&gt;
      &lt;MdsMenu:MenuItem Text="MenuItem 01" href="#" /&gt;
      &lt;MdsMenu:MenuItem Text="MenuItem 02" href="#"&gt;
          &lt;MdsMenu:MenuItem href="#" Text="Template"&gt;
              &lt;Template&gt;
                  &lt;asp:Button ID="Button1" runat="server" Text="Button" /&gt;
              &lt;/Template&gt;
          &lt;/MdsMenu:MenuItem&gt;
      &lt;/MdsMenu:MenuItem&gt;
      &lt;MdsMenu:MenuItem Text="MenuItem 03" href="#" /&gt;
      &lt;MdsMenu:MenuItem Text="MenuItem 04" href="#" /&gt;
  &lt;/MdsMenu:Menu&gt;
  </code></pre>
  
  <p>How can I render them ?</p>