I've been working on a custom templated web control and wondering if it woukd be possible to create a complex control whereby one template provides the field for another. For example:
<asp:controlname>
<Template1>
<div><%# Container.Template2Data %></div>
</Template1>
<Template2>
<b><%# Container.Item %></b>
</Template2>
</asp:controlname>
So template 1 is used multiple times with some source data and then the items genarated from this are placed in the Template2Data fields in the first template.
Is this possible?
<asp:controlname>
<Template1>
<div><%# Container.Template2Data %></div>
</Template1>
<Template2>
<b><%# Container.Item %></b>
</Template2>
</asp:controlname>
So template 1 is used multiple times with some source data and then the items genarated from this are placed in the Template2Data fields in the first template.
Is this possible?