Home All Groups Group Topic Archive Search About

AssociatedControlID and User Controls

Author
15 Oct 2007 7:13 PM
Verticon::
I have a user control that contains a drop down list and a few other
items.  I have a label control on the form level.  how do I assign the
label to the drop down list in the user control?

<asp:Label ID="Label" runat="server" AssociatedControlID=?></
asp:Label>

<UserControl ID="UserControl" runat="server">
    <asp:DropDownList ID="Input" runat="server"></asp:DropDownList> //
Renders as "UserControl_Input"
</UserControl>

AddThis Social Bookmark Button