Converting a WS to WAP
<p>Ive been trying to convert my asp.net website into a web application following the guide provided on msdn. However, ive run into a problem with some of my usercontrols that implements templating, getting the following error:</p>

<p><b>'System.Web.UI.UserControl' does not have a public property named 'ContentTemplate'</b></p>

<p>The codebehind clearly defines the template property like this which works fine in WS´s.</p>

<pre><code>[TemplateContainer(typeof(ContentContainer))]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateInstance(TemplateInstance.Single)]
public ITemplate ContentTemplate { get; set; }
</code></pre>

<p>Update: I dont know how or why but some of these controls have managed to convert into WAP usercontrols (with the designer file added), and the problem then is that no asp controls i define within these templates can be found anymore in code behind.</p>

<p>The error:</p>

<p><b>The name 'DropDownRoles' does not exist in the current context</b></p>

<p>The markup:</p>

<pre><code>&lt;%@ Register src="~/Controls/Containers/ContainerFrame.ascx" tagname="ContainerFrame" tagprefix="uc" %&gt;

&lt;uc:ContainerFrame ID="ContainerFrame1" Title="Layout" runat="server"&gt;
&lt;ContentTemplate&gt;
 &lt;asp:DropDownList ID="DropDownRoles" runat="server" /&gt;
&lt;/ContentTemplate&gt;
&lt;/uc:ContainerFrame&gt;
</code></pre>

<p>Any ideas?</p>
