How do I grab the controls inside of a UserControl tag?
So if this is on a Page:
<ME:NewControl ID="tblCustomList" runat="server">
// ... these controls will be used in my UserControl.aspx
</ME:NewControl>
How do I access those controls in my UserControl?
For instance, the Table class does this:
<asp:Table ID="tblNormal" runat="server">
<asp:TableRow>
<asp:TableCell>Thing 1</asp:TableCell>
<asp:TableCell>Thing 2</asp:TableCell>
</asp:TableRow>
</asp:Table>
I get an error saying my UserControl "does not have a public property named 'TableRow', when I do this:
<ME:NewControl ID="tblCustomList" runat="server">
<asp:TableRow>
<asp:TableCell>Thing 1</asp:TableCell>
<asp:TableCell>Thing 2</asp:TableCell>
</asp:TableRow>
</ME:NewControl>
I found this sample to help extend the Table class, but it's not exactly what I want to do.
I also found this description of how to use Templated Controls, which I'm not sure if I can use.