Hi, I've tried to play around with the codes above and I find it very interesting! thanks for the marvelous guide.
When I tried playing around further, I realized that <% %> tags wouldn't be processed within the ITemplate.
For example, I have a FormView in my page and I placed my WebControl within the FormView's ItemTemplate. Every <%# Eval() %> tag was processed nicely except for those within my WebControl's ITemplate.
My ITemplate is exactly like the codes above. Is there any extra codes I have to put in?
The code for my page is as follows:
<asp:FormView ID="FormView1" runat="server" DataSourceID="DS1">
<ItemTemplate>
<%# Eval("Field1") %>
<%= MyPageProperty %>
<wc1:MyControl ID="Control1" runat="server">
<FirstTemplate>
<%# Eval("Field1") %>
<%= MyPageProperty %>
</FirstTemplate>
</wc1:MyControl>
</ItemTemplate>
</asp:FormView>
Any help is much appreciated. Thanks in advance! :D