I created a control that uses the inside of the ITemplate so the user can add their own stuff.
<my:MyControl id="myControl" runat="server">
<Content>
//some stuff in here
</Content>
</my:MyControl>
The Content property is a template. (This is simply simplified. This design is within greater control).
Now I have a problem: my user places his own UserControl in <Content>..</Content>. This should not be a problem, but UserControl makes a call to the QueryString of the page in the PageLoad event. And now I realized that the Page null object is null when the UserControl is inside the template, when it works, if it is outside, as usual on the page.
Does anyone have an idea what might be the issue here?
source
share