Here's an example of how to use a template:

The ActivationPanel control supports templates, which allow you to customize the appearance of the panel's contents.

<asp:Button ID="ToggleButton" runat="server" Text="Toggle Panel" OnClick="ToggleButton_Click" />