Hi,
I have the following situation:
Server Control A:
<my:ServerCtrlA ...>
<Content>
<my:ServerCtrlB .../>
</Content>
</my:ServerCtrlA>
The <Content>
property of ServerControlA is an ITemplate
on which I call the InstantiateIn(...)
method.
ServerCtrlB is another control that may possibly be placed inside this Content property in the aspx code. The ServerCtrlB wraps a Repeater control inside with the appropriate templates for the header, footer and the items.
Now my problem is that strangely when I place the ServerCtrlB inside my Content property of the ServerCtrlA, the InstantiateIn of the template inside ServerCtrlB doesn't get called on a GET request of the page, but just when doing a POST request (i.e. hitting a button somewhere or similar). On the other side if I put just the ServerCtrlB control on a page everything works fine on both, GETs and POSTs.
Does someone have a hint on what could be the problem here??