Question Creating user control - how to have multiple ITemplate content children

Mahonroy

New member
Joined
Mar 11, 2015
Messages
4
Programming Experience
10+
Hello,
I am trying to create a user control that will allow formatting like so... here is an example:
C#:
<ctrl:MyControl ID="MyTableForm" runat="server">
    <Rows>
        <FirstColumn>
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        </FirstColumn>
        <SecondColumn>
            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        </SecondColumn>
    </Rows>
</ctrl:MyControl>

I want to apply some html formatting around these separate content properties. I am getting confused on how to set up the properties for this user control in the code-behind. I am imagining this being a list of ITemplates, but I am not sure how to go about it. Any help is greatly appreciated, thanks!
 
Back
Top Bottom