I have 3 panels:
<asp:Panel ID="ParentPanel" runat="server">
<asp:Panel ID="AnnoyingPanel" runat="server">
<asp:Panel ID="P" runat="server">
</asp:Panel>
</asp:Panel>
</asp:Panel>
How can I check if P
is child of ParentPanel
? Is there some LINQish way to do it?
Is there some more optimized way than the one I provided? Maybe using Linq?