Adding child elements to custom DropDownList
Hi,
I have a custom control inherited from DropDownList. In Visual Studio, I
can access my added properties using Intellisense just fine...
<ctl:MyDropDown id="ctl1" runat="server" CurrentColor="..." />
However, I cannot add ListItems to it. How can I code my control, so I can
do something like this?
<ctl:MyDropDown id="ctl1" runat="server" CurrentColor="...">
<asp:ListItem Text="..." Value="..." />
<asp:ListItem Text="..." Value="..." />
<asp:ListItem Text="..." Value="..." />
</ctl:MyDropDown>
Thank you,
newGuy
Date:Thu, 9 Aug 2007 11:50:03 -0700
Author:
|