I'm trying to run the templated user control example provided by MSDN. Code is as follows:
So according to MSDN this should implement as follows:
<%@ Register Assembly="MyAssembly" Namespace="MyAssembly.Controls" TagPrefix="abs" %>
<abs:TemplatedFirstControl id = "First" runat=server
Text= "The time on the server is " >
<FirstTemplate>
<h3><font face="Verdana" color = "red">
<%# Container.Text %> <%# Container.DateTime %>
</font>
</h3>
</FirstTemplate>
</abs:TemplatedFirstControl>
Designer complains that content is not allowed between the opening and closing tags of TemplatedFirstControl
and that FirstTemplate
is not supported. So what's missing? I duplicated MSDN's code verbatim
MSDN Article: http://msdn.microsoft.com/en-us/library/aa720695%28v=VS.71%29.aspx