I am creating a custom serve control (extends composite control). I want this control to use update panels but I think it would be best to require the user to place my control within their own update panels, instead of me coding it into my control. My question is two part:
How do I alert the developer who is using my control that they are required to put the control in an update panel
In my server code, how do I get a handle on the update panels ID that the user control is inside of?
Thanks for any insight.
Edit: here is how I have my code setup:
<asp:UpdatePanel ID="UpdatePanel1" runat="server" >
<ContentTemplate>
<cc3:myServerControl id="activerDirectorySearch1" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
so, because my user control cannot know what the udpate panel is named (and I dont want to hard code it) I would like to find a way for the server control to get its parents ID. But, if I use parent.id I just get the web pages name returned.
jason