I have a Web User Control that contains a CheckBoxList.
MyListControl:
<asp:checkboxlist id="chkList" runat="server">
<asp:listitem id="option1" runat="server" value="Madrid" />
<asp:listitem id="option2" runat="server" value="Oslo" />
<asp:listitem id="option3" runat="server" value="Lisbon" />
</asp:checkboxlist>
I want to check what Items are checked before a form is submitted on the parent page. I was hoping it would work like this:
myParentPage:
MyUserControlInstance.chkList.Items.Count
How does one reference a control in a user control from the parent page?